forked from ansys/ansys-sphinx-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (42 loc) · 1.22 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
[tox]
description = Default tox environments list
envlist =
style,{py37,py38,py39,py310}{,-cov},doc
skip_missing_interpreters = true
isolated_build = true
isolated_build_env = build
[gh-actions]
description = The tox environment to be executed in gh-actions for a given python version
python =
3.7: style,py37-coverage,doc
3.8: style,py38-coverage,doc
3.9: style,py39-coverage,doc
3.10: style,py310-coverage,doc
[testenv]
description = Checks for project unit tests and coverage (if desired)
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py: python3
{style,reformat,doc,build}: python3
setenv =
PYTHONUNBUFFERED = yes
cov: PYTEST_EXTRA_ARGS = --cov=ansys-sphinx-theme --cov-report=term --cov-report=xml --cov-report=html
DOCUMENTATION_CNAME = sphinxdocs.ansys.com
passenv = *
[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
extras = doc
commands =
sphinx-build doc/source "{toxinidir}/doc/_build/html" --color -vW -bhtml