forked from matrix-nio/matrix-nio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
35 lines (31 loc) · 796 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
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py36,py37,py38,coverage,mypy
[testenv]
basepython =
py36: python3.6
py37: python3.7
py38: python3.8
deps = -rtest-requirements.txt
install_command = pip install {opts} {packages}
passenv = TOXENV CI TRAVIS TRAVIS_*
commands = pytest --benchmark-disable
usedevelop = True
[testenv:mypy]
basepython = python3.8
commands =
python -m mypy -p nio --ignore-missing-imports --warn-redundant-casts
[testenv:coverage]
basepython = python3.7
commands =
coverage erase
py.test --cov=nio --cov-report term-missing --benchmark-disable
coverage xml
coverage report --show-missing
codecov -e TOXENV
deps =
-rtest-requirements.txt
coverage
codecov>=1.4.0
setenv =
COVERAGE_FILE=.coverage