diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 85e8d4a4..304f107e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -36,4 +36,4 @@ jobs: pip install '.[test]' - name: Run the tests with pytest run: | - python -m pytest --cov=posteriors --cov-report term-missing \ No newline at end of file + python -m pytest -n auto --cov=posteriors --cov-report term-missing \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index a15686a6..eda2786c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ classifiers = [ dependencies = ["torch>=2.0.0", "torchopt>=0.7.3", "optree>=0.10.0"] [project.optional-dependencies] -test = ["pre-commit", "pytest-cov", "ruff"] +test = ["pre-commit", "pytest-cov", "pytest-xdist", "ruff"] docs = ["mkdocs", "mkdocs-material", "mkdocstrings[python]"] [tool.setuptools] @@ -33,6 +33,7 @@ packages = [ [tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401", "F821", "E402"] + [build-system] requires = ["setuptools>=64"] build-backend = "setuptools.build_meta" \ No newline at end of file