diff --git a/pyproject.toml b/pyproject.toml index adf93290..0235c135 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,6 +71,7 @@ mypy = [ test = [ "coverage[toml]!=4.4,>=4.0", "pytest", + "pytest-xdist", "requests-mock", "spdx-tools", "twine>=6.1.0", @@ -293,6 +294,8 @@ features = ["docs"] build = "sphinx-build -M html docs docs/_build -j auto --keep-going {args:--fail-on-warning --fresh-env -n}" [tool.pytest.ini_options] +# run tests in parallel with 3 pytest-xdist workers +addopts = "-n 3" markers = [ "network: test that need network access", ]