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.*" 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