-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (47 loc) · 1.35 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[tox]
description = Default tox environments list
envlist =
style,tests,doc
skip_missing_interpreters = true
isolated_build = true
[testenv]
description = Checks for project unit tests and coverage (if desired)
basepython =
tests310: python3.10
tests311: python3.11
tests312: python3.12
tests313: python3.13
{style,tests,doc}: python3
skip_install = true
allowlist_externals =
poetry
passenv =
TEST_SL_URL
TEST_LIST_ADMIN_USER
TEST_LIST_ADMIN_PASS
TEST_LIST_USER
TEST_LIST_PASS
POETRY_HTTP_BASIC_PRIVATE_PYPI_USERNAME
POETRY_HTTP_BASIC_PRIVATE_PYPI_PASSWORD
setenv =
PYTHONUNBUFFERED = yes
PYTEST_EXTRA_ARGS = --cov=ansys.grantami.recordlists --cov-report=term --cov-report=xml:.cov/xml --cov-report=html:.cov/html
commands =
poetry install
poetry run pytest {env:PYTEST_MARKERS:} {env:PYTEST_EXTRA_ARGS:} {posargs:-vv}
[testenv:style]
description = Checks project code style
skip_install = true
deps =
pre-commit
commands =
pre-commit install
pre-commit run --all-files --show-diff-on-failure
[testenv:doc]
description = Check if documentation generates properly
skip_install = true
allowlist_externals =
poetry
commands =
poetry install --with doc
poetry run sphinx-build -d "{toxworkdir}/doc_doctree" doc/source "{toxinidir}/doc/_build/html" --color -W -bhtml -n --keep-going