Skip to content

Commit

Permalink
Use xdist for serial tests (#3996)
Browse files Browse the repository at this point in the history
* Use pytest-xdist for serial tests so output is collated

* lint

* fixup

* fixup

* fixup

* undo tee-ing

* another try
connorjward authored Jan 29, 2025

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 58f3d6f commit c2500aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -96,13 +96,15 @@ jobs:
sudo apt -y install parallel
. ../firedrake_venv/bin/activate
python "$(which firedrake-clean)"
python -m pip install pytest-timeout ipympl pytest-split
python -m pip install pytest-timeout ipympl pytest-split pytest-xdist
python -m pip list
- name: Run tests (nprocs = 1)
run: |
: # Use pytest-xdist here so we can have a single collated output (not possible
: # for parallel tests)
. ../firedrake_venv/bin/activate
firedrake-run-split-tests 1 12 "$EXTRA_PYTEST_ARGS --junit-xml=firedrake1_{#}.xml"
firedrake-run-split-tests 1 1 "-n 12 $EXTRA_PYTEST_ARGS --junit-xml=firedrake1_{#}.xml"
- name: Run tests (nprocs = 2)
# Run even if earlier tests failed

0 comments on commit c2500aa

Please sign in to comment.