forked from stfc/janus-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
23 lines (19 loc) · 754 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[tox]
envlist = py311
[testenv]
usedevelop=True
[testenv:py{39,310,311,312}]
description = Run the test suite against Python versions
allowlist_externals = poetry
commands_pre = poetry install --no-root --sync --extras all
commands = poetry run pytest {posargs} --run-extra-mlips --cov janus_core --import-mode importlib
[testenv:pre-commit]
description = Run the pre-commit checks
allowlist_externals = poetry
commands_pre = poetry install --no-root --sync
commands = poetry run pre-commit run {posargs} --all-files
[testenv:docs]
description = Build the documentation
allowlist_externals = poetry, echo
commands_pre = poetry install --no-root --sync
commands = poetry run sphinx-build -nW --keep-going -b html {posargs} docs/source docs/build/html