generated from ansys/template
-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
41 lines (38 loc) · 1011 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[tox]
description = Tox environments for PyPrimeMesh development
envlist = py{310,311,312}, doc, style
skip_missing_interpreters = true
isolated_build = true
isolated_build_env = build
[testenv]
basepython =
py310: python3.10
py311: python3.11
py312: python3.12
py: python3
doc: python3
style: python3
usedevelop = true
extras = tests
commands =
python --version
pytest {toxinidir}{/}tests
setenv=
AWP_ROOT251 = {env:AWP_ROOT251}
ANSYSLMD_LICENSE_FILE = {env:ANSYSLMD_LICENSE_FILE}
[testenv:doc]
usedevelop = true
extras = doc
setenv =
PYPRIMEMESH_SPHINX_BUILD = 1
AWP_ROOT251 = {env:AWP_ROOT251}
ANSYSLMD_LICENSE_FILE = {env:ANSYSLMD_LICENSE_FILE}
DOCUMENTATION_CNAME = prime.docs.pyansys.com
commands =
sphinx-build -b html -d {toxinidir}{/}doc{/}_build{/}.doctrees {toxinidir}{/}doc{/}source {toxinidir}{/}doc{/}_build{/}html --color -vW -j auto
[testenv:style]
usedevelop = true
deps =
pre-commit
commands =
pre-commit run --all-files