-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
36 lines (32 loc) · 751 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
[tox]
envlist = py{38,39,310,311,312},coverage
[testenv]
description = run the test driver with {basepython}
deps =
coverage[toml]
setenv =
COVERAGE_FILE={toxworkdir}/.coverage
commands =
coverage run -m unittest discover
[testenv:coverage]
description = [run locally after tests]: combine coverage data and create report
deps = coverage[toml]
depends = py{38,39,310,311,312}
skip_install = True
commands =
coverage combine -q
coverage report
parallel_show_output = True
# Release tooling
[testenv:build]
deps = build
skip_install = true
commands = python -m build
[testenv:release]
deps =
{[testenv:build]deps}
twine
skip_install = true
commands =
{[testenv:build]commands}
twine upload --skip-existing dist/*