-
Notifications
You must be signed in to change notification settings - Fork 20
/
tox.ini
37 lines (27 loc) · 990 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
[tox]
envlist = py38,py39,py310,py311,pep8,lint,integrations
[flake8]
exclude = ownca/__init__.py,venv,.venv,settings.py,.git,.tox,dist,docs,*lib/python*,*egg,build,tools
[testenv:lint]
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:pep8]
deps = {[testenv:lint]deps}
commands = pre-commit run flake8 --all-files --show-diff-on-failure
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = coverage run -m pytest --pdb -vv tests/unit
setenv = TEST_MODE = True
[testenv:integrations]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = coverage run -m pytest --pdb -vv tests/integrations
[testenv:all_tests]
commands = coverage run -m pytest --pdb -vv tests/unit tests/integrations
[gh-actions]
python =
3.8: py38,pep8,lint,integrations
3.9: py39,pep8,lint,integrations
3.10: py310,pep8,lint,integrations
3.11: py311,pep8,lint,integrations