Skip to content

Commit 6c68a18

Browse files
committed
Parallelize Tests
Addresses #131
1 parent 85fee39 commit 6c68a18

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

requirements_dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
flake8>=6.1.0
22
tox>=4.10.0
33
pytest>=7.2.0
4+
pytest-xdist>=3.5.0
45
pytest-cov>=4.1.0
56
myp>=1.5.1

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ setenv =
1313
deps =
1414
-r{toxinidir}/requirements_dev.txt
1515
commands =
16-
pytest --basetemp={envtmpdir}
16+
pytest -n auto --basetemp={envtmpdir}
1717

1818
[testenv:flake8]
1919
basepython = python3.10
@@ -23,7 +23,7 @@ commands = flake8 bayesflow tests
2323
[testenv:base]
2424
extras = test
2525
commands =
26-
pytest tests
26+
pytest tests -n auto
2727

2828
[testenv:docs]
2929
extras =

0 commit comments

Comments
 (0)