From 6c68a18c0c6e1d604eab594293c652ce8ab6b4af Mon Sep 17 00:00:00 2001 From: LarsKue Date: Tue, 20 Feb 2024 16:05:19 +0100 Subject: [PATCH] Parallelize Tests Addresses #131 --- requirements_dev.txt | 1 + tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements_dev.txt b/requirements_dev.txt index 00fab1da0..d86072ada 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,5 +1,6 @@ flake8>=6.1.0 tox>=4.10.0 pytest>=7.2.0 +pytest-xdist>=3.5.0 pytest-cov>=4.1.0 myp>=1.5.1 diff --git a/tox.ini b/tox.ini index ff23a1fd6..79a542e41 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,7 @@ setenv = deps = -r{toxinidir}/requirements_dev.txt commands = - pytest --basetemp={envtmpdir} + pytest -n auto --basetemp={envtmpdir} [testenv:flake8] basepython = python3.10 @@ -23,7 +23,7 @@ commands = flake8 bayesflow tests [testenv:base] extras = test commands = - pytest tests + pytest tests -n auto [testenv:docs] extras =