From a76783328333b131bdf0b4216f591b6ff5511fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Wed, 14 May 2025 11:21:43 -0700 Subject: [PATCH 1/2] BUG: we should return on the pytest exitval --- test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.sh b/test.sh index 0e76f7c..574c2b6 100755 --- a/test.sh +++ b/test.sh @@ -29,6 +29,12 @@ done pytest --nbval-lax -vv --suppress-no-test-exit-code --durations=10 +_exitval="$?" + +if [ $_exitval > 0 ]; then + exit $_exitval +fi + # Clean up ipynb files that were converted. Any stray ipynb files that were # _not_ the result of conversion from Markdown will be left alone. for file in "${notebook_files[@]}"; do From 2302123b69fdf3f1309f7303127a8c2db150ab81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Wed, 14 May 2025 11:45:46 -0700 Subject: [PATCH 2/2] pixi: Adding pytest plugin --- pixi.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pixi.toml b/pixi.toml index b188d78..56148de 100644 --- a/pixi.toml +++ b/pixi.toml @@ -46,6 +46,7 @@ myst-nb = ">=1.1" jupytext = ">=1.16" sphinx-book-theme = ">=1.1" sphinx-copybutton = ">=0.5" +pytest-custom_exit_code = "*" [feature.py312.dependencies] python = "3.12.*"