-
Notifications
You must be signed in to change notification settings - Fork 21
/
tox.ini
45 lines (40 loc) · 1008 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
[tox]
envlist = coverage-clean,test-py{310,311,312}, check, coverage
[testenv]
extras = test
setenv =
COVERAGE_FILE = ./.coverage.{envname}
commands =
{envbindir}/python -V
{envbindir}/pytest --cov {posargs}
{envbindir}/coverage report
depends = coverage-clean
[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase
depends =
[testenv:coverage]
depends = test-py{39,310,311,312}
deps =
coverage
skip_install = true
setenv =
commands =
- coverage combine
{envbindir}/coverage html
{envbindir}/coverage report
[testenv:check]
deps =
-rrequirements-check.txt
commands =
{envbindir}/python -V
{envbindir}/ruff check passgithelper.py test_passgithelper.py
{envbindir}/isort --check passgithelper.py test_passgithelper.py
{envbindir}/black --check passgithelper.py test_passgithelper.py
{envbindir}/mypy passgithelper.py
[gh-actions]
python =
3.10: py310, coverage
3.11: py311, coverage
3.12: py312, coverage