Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use xdist for serial tests #3996

Merged
merged 7 commits into from
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading