tests:fix py2

This commit is contained in:
Casper da Costa-Luis 2020-12-25 01:40:26 +00:00
parent acbe64809e
commit 59f879501c
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
1 changed files with 14 additions and 21 deletions

35
tox.ini
View File

@ -9,29 +9,24 @@ envlist = py{27,34,35,36,37,38,39,py2,py3}{,-tf}{,-keras}, perf, flake8, setup.p
isolated_build = True
[coverage]
commands=
- coveralls
codecov
- codacy report -r coverage.xml
[extra]
deps =
pytest
pytest-cov
py{37,38,39}: pytest-asyncio
coverage
coveralls
codecov
commands =
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf"
- coveralls
- codacy report -r coverage.xml
{[coverage]commands}
allowlist_externals = codacy
[extra]
deps =
{[coverage]deps}
codecov
commands =
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf"
- coveralls
codecov
- codacy report -r coverage.xml
allowlist_externals = {[coverage]allowlist_externals}
[testenv]
passenv = CI TOXENV CODECOV_* COVERALLS_* CODACY_* HOME
deps =
@ -44,15 +39,13 @@ deps =
commands = {[extra]commands}
allowlist_externals = {[extra]allowlist_externals}
# no cython/numpy/pandas for py{py2,py3,26,33,34}
[testenv:py{27,py2}{,-tf}{,-keras}]
commands =
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf" -o addopts= -v --tb=short -rxs --durations=10
{[coverage]commands}
[testenv:pypy]
deps = {[extra]deps}
[testenv:pypy3]
deps = {[extra]deps}
[testenv:py34]
# no cython/numpy/pandas
[testenv:py{34,py2,py3}]
deps = {[extra]deps}
[testenv:perf]