Skip to content

Commit

Permalink
Fix tox configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottKasoar authored and alinelena committed Mar 19, 2024
1 parent b1eea8a commit 3038a2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 3038a2d

Please sign in to comment.