Skip to content

Commit

Permalink
Run all pytests even if submodules fail (#545)
Browse files Browse the repository at this point in the history
Attempt to run pytests in all submodules even if individual packages
fail.
  • Loading branch information
pstjohn authored Dec 18, 2024
1 parent 4d44f5d commit 6f34fad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ci/scripts/run_pytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6f34fad

Please sign in to comment.