From 43b6a1c1ae70917b52fff9380d8f2d87f4a37383 Mon Sep 17 00:00:00 2001 From: "Peter St. John" Date: Wed, 18 Dec 2024 09:57:00 -0800 Subject: [PATCH] Run all pytests even if submodules fail --- ci/scripts/run_pytest.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ci/scripts/run_pytest.sh b/ci/scripts/run_pytest.sh index 68bd9e2dca..6a63bf0606 100755 --- a/ci/scripts/run_pytest.sh +++ b/ci/scripts/run_pytest.sh @@ -29,12 +29,16 @@ fi python -m coverage erase +error=false for dir in docs/ ./sub-packages/bionemo-*/; do echo "Running pytest in $dir" python -m coverage run --parallel-mode --source=bionemo \ - -m pytest -v --nbval-lax --durations=0 --durations-min=60.0 "$dir" - + -m pytest -v --nbval-lax --durations=0 --durations-min=60.0 "$dir" || error=true done python -m coverage combine python -m coverage report --show-missing + +if [ "$error" = true ]; then + exit 1 +fi