Skip to content

Commit

Permalink
Run tests serialized with Python < 3.12
Browse files Browse the repository at this point in the history
The xdist workers in GitHub CI started crashing with the older Python
versions.

Signed-off-by: Nils Philippsen <nils@redhat.com>
  • Loading branch information
nphilipp committed Jun 6, 2024
1 parent a975be4 commit cb18c67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ setenv =
# erroneously doesn’t count a `break` statement which clearly is executed (as
# the preceding statements which aren’t flagged).
py39: COV_FAIL_UNDER = 99
# Run tests serialized with Python < 3.12 as workers in GitHub CI started crashing.
py{39,310,311}: RUN_TESTS_PARALLEL =
skip_install = true
sitepackages = false
commands_pre =
poetry install --all-extras
commands =
pytest --import-mode importlib -n auto -o 'addopts=--cov --cov-config .coveragerc --cov-report term --cov-report xml --cov-report html --cov-fail-under {env:COV_FAIL_UNDER:100}' tests/
pytest --import-mode importlib {env:RUN_TESTS_PARALLEL:-n auto} -o 'addopts=--cov --cov-config .coveragerc --cov-report term --cov-report xml --cov-report html --cov-fail-under {env:COV_FAIL_UNDER:100}' tests/

[testenv:black]
deps = black
Expand Down

0 comments on commit cb18c67

Please sign in to comment.