forked from stfc/aiida-mlip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
24 lines (20 loc) · 797 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
24
[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
commands = poetry run pytest {posargs} --cov aiida_mlip --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
commands_post = echo "open file://{toxinidir}/docs/build/html/index.html"