Skip to content

Fix tox #514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ dev = [
"pgtest<2.0.0,>=1.3.2",
"pytest<9.0,>=8.0",
"pytest-cov<5.0.0,>=4.1.0",
"tox-uv<2.0,>=1.16.1",
"tox-uv<2.0,>=1.25.0",
"wheel<1.0,>=0.42",
]

Expand Down
23 changes: 20 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
[tox]
envlist = py311
envlist = py312

[testenv]
usedevelop=True
uv_sync_flags=--python={env_python}

[testenv:py{310,311,312}]
runner = uv-venv-lock-runner
extras = all
with_dev = True
description = Run the test suite against Python versions
commands = pytest {posargs} --run-extra-mlips --cov janus_core --import-mode importlib
commands = pytest {posargs} --cov janus_core --import-mode importlib

[testenv:e3nn]
runner = uv-venv-lock-runner
extras = mattersim
with_dev = True
description = Run the test suite against Python versions
commands = pytest tests/test_mlip_calculators.py tests/test_single_point.py {posargs} --cov janus_core --import-mode importlib

[testenv:matgl]
runner = uv-venv-lock-runner
extras =
alignn
mace
m3gnet
with_dev = True
description = Run the test suite against Python versions
commands = pytest tests/test_mlip_calculators.py tests/test_single_point.py tests/test_eos.py {posargs} --cov janus_core --import-mode importlib

[testenv:pre-commit]
runner = uv-venv-lock-runner
Expand All @@ -21,6 +37,7 @@ commands = pre-commit run {posargs} --all-files

[testenv:docs]
runner = uv-venv-lock-runner
extras = all
with_dev = True
description = Build the documentation
commands = sphinx-build -nW --keep-going -b html {posargs} docs/source docs/build/html
Loading