Skip to content

Commit

Permalink
Add pytest-xdist to run tests in random order
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Oct 30, 2023
1 parent b8cc859 commit 4c6819e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def get_setup_version(reponame):
'pre-commit',
'matplotlib >=3.4', # Ubuntu + Python 3.9 installs old version matplotlib (3.3.2)
'pytest-github-actions-annotate-failures',
'pytest-xdist',
],
'doc': [
'nbsite >=0.8.2',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ commands = flake8
[_unit]
description = Run unit tests
deps = .[tests]
commands = pytest lumen --cov=./lumen --cov-append
commands = pytest lumen --cov=./lumen --cov-append -n auto --dist loadgroup

[_all]
description = Run all tests (but only including default examples)
Expand Down

0 comments on commit 4c6819e

Please sign in to comment.