Skip to content

Commit

Permalink
workflow: run pytest in parallel
Browse files Browse the repository at this point in the history
We cannot run too many tests in parallel or we run out of diskspace
in the GH runners (or other bad things happen).
  • Loading branch information
mvo5 committed Nov 11, 2024
1 parent 9fd5a96 commit d381540
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ jobs:
# podman needs (parts of) the environment but will break when
# XDG_RUNTIME_DIR is set.
# TODO: figure out what exactly podman needs
sudo -E XDG_RUNTIME_DIR= pytest-3 --basetemp=/mnt/var/tmp/bib-tests
# run a bunch of tests in parallel
sudo -E XDG_RUNTIME_DIR= pytest-3 -n 2 --basetemp=/mnt/var/tmp/bib-tests
- name: Diskspace (after)
if: ${{ always() }}
run: |
Expand Down
1 change: 1 addition & 0 deletions test/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ paramiko==2.12.0
boto3==1.33.13
qmp==1.1.0
pylint==3.2.5
pytest-xdist

0 comments on commit d381540

Please sign in to comment.