diff --git a/pyproject.toml b/pyproject.toml index 5e812484..07c20b1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,6 +82,7 @@ good-names = ["e"] # Configuration for [pytest](https://docs.pytest.org) python_files = "test_*.py" addopts = '--cov-report xml' +pythonpath = ["."] [tool.coverage.run] # Configuration of [coverage.py](https://coverage.readthedocs.io) diff --git a/tox.ini b/tox.ini index 254d55d9..6813c75b 100644 --- a/tox.ini +++ b/tox.ini @@ -4,11 +4,11 @@ envlist = py311 [testenv] usedevelop=True -[testenv:py{39,310,312}] +[testenv:py{39,310,311,312}] description = Run the test suite against Python versions allowlist_externals = poetry commands_pre = poetry install --no-root --sync -commands = poetry run pytest --cov janus_core --import-mode importlib +commands = poetry run pytest {posargs} --cov janus_core --import-mode importlib [testenv:pre-commit] description = Run the pre-commit checks @@ -26,4 +26,4 @@ commands = poetry run sphinx-build -nW --keep-going -b html {posargs} docs/sourc description = Run the additional tests suite against Python versions allowlist_externals = poetry commands_pre = poetry install --no-root --sync --with extra-mlips -commands = poetry run pytest --run-extra-mlips --run-slow --cov janus_core --import-mode importlib +commands = poetry run pytest {posargs} --run-extra-mlips --run-slow --cov janus_core --import-mode importlib