forked from danielhrisca/asammdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (39 loc) · 1.02 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
# 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
[testenv:{py37,py38,py39,py310}]
; usedevelop is required for C extensions
usedevelop = true
deps =
-rtest/requirements.txt
coverage
commands =
coverage run --rcfile=.coveragerc --module \
pytest --color=yes --code-highlight=yes
coverage report --rcfile=.coveragerc
[testenv:style]
deps =
black
isort
commands =
black --config pyproject.toml --check .
isort --settings-path pyproject.toml --check .
[testenv:doc]
deps =
-rdoc/requirements.txt
commands =
sphinx-build -W -b html doc doc/_build/html
[testenv:exe]
deps =
-rrequirements_exe_build.txt
commands =
pyinstaller asammdf.spec --noconfirm --clean --onefile
[gh-actions]
python =
3.7: py37, style, doc
3.8: py38
3.9: py39, exe
3.10: py310