Debian Codegraph @

tox.ini

raw
1 # tox (https://tox.readthedocs.io/) is a tool for running tests
2 # in multiple virtualenvs. This configuration file will run the
3 # test suite on all supported python versions. To use it, "pip install tox"
4 # and then run "tox" from this directory.
5
6 [tox]
7 envlist = py310, py311, py312, py313, mypy, ruff, doc
8
9 [testenv:{py310,py311,py312,py313}]
10 deps =
11 --requirement test/requirements.txt
12 extras =
13 export
14 export-matlab-v5
15 gui
16 passenv = DISPLAY,XAUTHORITY
17 setenv =
18 DISPLAY = :0
19 QT_DEBUG_PLUGINS = 1
20 commands =
21 pytest --cov --cov-report=lcov {posargs}
22
23 [testenv:libtests]
24 deps =
25 --requirement test/requirements.txt
26 extras =
27 export
28 export-matlab-v5
29 gui
30 passenv = DISPLAY,XAUTHORITY
31 setenv =
32 DISPLAY = :0
33 QT_DEBUG_PLUGINS = 1
34 commands =
35 pytest -k "not gui"
36
37
38 [testenv:mypy]
39 deps =
40 --requirement types-requirements.txt
41 mypy~=1.14
42 extras =
43 decode
44 encryption
45 export
46 export-matlab-v5
47 filesystem
48 gui
49 plot
50 symbolic-math
51 commands =
52 mypy
53
54 [testenv:ruff]
55 deps =
56 ruff~=0.15.0 # Aligned with .pre-commit-config.yaml
57 skip_install = true
58 commands =
59 ruff check
60 ruff format --check
61
62 [testenv:doc]
63 deps =
64 --requirement doc/requirements.txt
65 extras =
66 export
67 commands =
68 sphinx-build --builder html --nitpicky doc doc/_build/html
69
70 [testenv:pyinstaller]
71 base =
72 deps =
73 pyinstaller
74 PyOpenGL
75 PyOpenGL-accelerate
76 canmatrix>=1.2
77 ldfparser
78 extras =
79 decode
80 encryption
81 export
82 export-matlab-v5
83 gui
84 symbolic-math
85 commands =
86 pyinstaller asammdf.spec {posargs}
87
88 [gh-actions]
89 python =
90 3.10: py310, mypy, ruff, doc
91 3.11: py311
92 3.12: py312
93 3.13: py313, mypy
94
95 [pytest]
96 python_classes =
97 testpaths = test
98 addopts = -vv --color=yes --code-highlight=yes --junitxml=test-reports/unit-tests-results.xml
99 timeout = 600