forked from python-jsonschema/check-jsonschema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (42 loc) · 1010 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
[tox]
envlist =
cov-clean
cov-report
py{310,39,38,37,36}
skip_missing_interpreters = true
minversion = 3.0.0
[testenv]
usedevelop = true
extras = dev
commands = pytest --cov=src --cov-append --cov-report= {posargs}
depends =
{py36,py37,py38,py39}: cov-clean
cov-report: py36,py37,py38,py39
[testenv:cov-clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:cov-report]
deps = coverage
skip_install = true
commands = coverage report --skip-covered
[testenv:twine-check]
skip_install = true
deps = twine
build
whitelist_externals = rm
commands_pre = rm -rf dist/
# check that twine validating package data works
commands = python -m build
twine check dist/*
[testenv:vendor-schemas]
commands = python ./vendor-schemas.py
[testenv:publish-release]
skip_install = true
deps = twine
build
# clean the build dir before rebuilding
whitelist_externals = rm
commands_pre = rm -rf dist/
commands = python -m build
twine upload dist/*