forked from etingof/pyasn1-modules
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
49 lines (44 loc) · 983 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
42
43
44
45
46
47
48
49
[tox]
minversion = 3.5.0
envlist =
py{38, 39, 310, 311, 312, 313, py38, py39}
cover, bandit, build
isolated_build = true
skip_missing_interpreters = true
[testenv]
commands =
{envpython} -m unittest discover -s tests
deps =
pyasn1>=0.4.6,<0.7.0
[testenv:cover]
basepython = python3
deps =
coverage
commands = coverage erase
coverage run --source pyasn1_modules -m unittest discover {posargs}
coverage report --fail-under 93
[testenv:bandit]
skip_install = true
deps =
bandit
commands =
bandit -r pyasn1 -c .bandit.yml
[testenv:build]
skip_install = true
deps =
build
twine
commands =
{envpython} -m build
{envpython} -m twine check --strict dist/pyasn1_modules*.whl
{envpython} -m twine check --strict dist/pyasn1_modules*.tar.gz
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310, cover, build, bandit
3.11: py311
3.12: py312
3.13: py313
pypy-3.8: pypy38
pypy-3.9: pypy39