-
-
Notifications
You must be signed in to change notification settings - Fork 231
/
Copy pathtox.ini
87 lines (78 loc) · 1.7 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
isolated_build = true
envlist = py310, py311, py312, py313, black, mypy, ruff, doc
[testenv:{py310,py311,py312,py313}]
deps =
--requirement test/requirements.txt
extras =
export
export-matlab-v5
gui
passenv = DISPLAY,XAUTHORITY
setenv =
DISPLAY = :0
QT_DEBUG_PLUGINS = 1
commands =
pytest --cov --cov-report=lcov
[testenv:black]
deps =
black~=25.1 # Aligned with .pre-commit-config.yaml
skip_install = true
commands =
black --config pyproject.toml --check . asammdf.spec
[testenv:mypy]
deps =
--requirement types-requirements.txt
mypy~=1.14
extras =
decode
encryption
export
export-matlab-v5
filesystem
gui
symbolic-math
commands =
mypy
[testenv:ruff]
deps =
ruff~=0.9.0 # Aligned with .pre-commit-config.yaml
skip_install = true
commands =
ruff check
[testenv:doc]
deps =
--requirement doc/requirements.txt
commands =
sphinx-build --builder html --nitpicky doc doc/_build/html
[testenv:pyinstaller]
base =
deps =
pyinstaller
pyopengl
canmatrix>=1.2
ldfparser
extras =
decode
encryption
export
export-matlab-v5
gui
symbolic-math
commands =
pyinstaller asammdf.spec {posargs}
[gh-actions]
python =
3.10: py310, black, mypy, ruff, doc
3.11: py311
3.12: py312
3.13: py313, mypy
[pytest]
python_classes =
testpaths = test
addopts = -vv --color=yes --code-highlight=yes --junitxml=test-reports/unit-tests-results.xml
timeout = 600