-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
42 lines (34 loc) · 790 Bytes
/
tox.ini
File metadata and controls
42 lines (34 loc) · 790 Bytes
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
[tox]
skipsdist = true
envlist = lint,py37,py38,py39,pypi-description,coverage-report
[testenv]
commands =
poetry install -v --no-ansi
poetry run coverage run --parallel -m pytest {posargs}
poetry check
[testenv:lint]
basepython = python3.8
skip_install = true
deps = pre-commit
passenv = HOMEPATH # needed on Windows
commands = pre-commit run --all-files
[testenv:pypi-description]
basepython = python3.8
skip_install = true
deps =
twine
pip >= 18.0.0
commands =
pip wheel -w {envtmpdir}/build --no-deps .
twine check {envtmpdir}/build/*
[testenv:coverage-report]
passenv = CI TRAVIS TRAVIS_* CODECOV_TOKEN
basepython = python3.8
skip_install = true
deps =
coverage[toml]
codecov
commands =
coverage combine
coverage report
codecov