-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
52 lines (49 loc) · 1.59 KB
/
Copy pathtox.ini
File metadata and controls
52 lines (49 loc) · 1.59 KB
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
51
52
[tox]
description = Default tox environments list
# coverage is optional but includes tests: by default run only coverage
# env_list = code-style, py{37,310,312}-tests{-coverage,}, doc-{links,html}
env_list = code-style, py{37,310,312}-tests-coverage, doc-{links,html}
skip_missing_interpreters = true
isolated_build_env = build
[testenv:py{37, 310, 312}-tests{-coverage,}]
description =
Checks for project unit tests
coverage: and coverage
py37: with python version 3.7
py310: with python version 3.10
py312: with python version 3.12
base_python =
py37: python3.7
py310: python3.10
py312: python3.12
extras = tests
setenv =
TEMP = {env_tmp_dir}
TMP = {env_tmp_dir}
PYTHONUNBUFFERED = yes
coverage: PYTEST_EXTRA_ARGS = --cov=ansys.scade.python_wrapper --cov-report=term --cov-report=xml:.cov/.{env_name}/xml --cov-report=html:.cov/.{env_name}/html --cov-branch
passenv =
ANSYSLMD_LICENSE_FILE
commands =
python -m pytest -o addopts= {env:PYTEST_EXTRA_ARGS:} {posargs:-vv}
[testenv:code-style]
description = Checks project code style
skip_install = true
deps = pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:doc-{links,html}]
description =
Checks
links: the integrity of all external links
html: if html documentation generates properly
base_python = python3
setenv =
links: BUILDER = linkcheck
html: BUILDER = html
passenv =
BUILD_API
BUILD_EXAMPLES
extras = doc
commands =
sphinx-build -d "{toxworkdir}/doc_doctree" doc/source "{toxinidir}/doc/_build/{env:BUILDER}" --color -vW -b{env:BUILDER}