tests: minify tox

This commit is contained in:
Casper da Costa-Luis 2021-02-22 22:27:58 +00:00
parent f2f47d5f90
commit b612be49cc
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
1 changed files with 13 additions and 17 deletions

30
tox.ini
View File

@ -4,17 +4,11 @@
# and then run "tox" from this directory.
[tox]
# deprecation warning: py{34}
# deprecation warning: py{27,py2,34,35}
envlist=py{27,34,35,36,37,38,39,py2,py3}{,-tf}{,-keras}, perf, setup.py
isolated_build=True
[coverage]
commands=
- coveralls
codecov -X pycov -e TOXENV
- codacy report -l Python -r coverage.xml --partial
[extra]
[core]
deps=
pytest
pytest-cov
@ -24,14 +18,14 @@ deps=
coveralls
codecov
commands=
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not perf"
{[coverage]commands}
allowlist_externals=codacy
- coveralls
codecov -X pycov -e TOXENV
- codacy report -l Python -r coverage.xml --partial
[testenv]
passenv=CI GITHUB_* TOXENV CODECOV_* COVERALLS_* CODACY_* HOME
passenv=TOXENV CI GITHUB_* CODECOV_* COVERALLS_* CODACY_* HOME
deps=
{[extra]deps}
{[core]deps}
cython
matplotlib
numpy
@ -39,17 +33,19 @@ deps=
keras: keras
py{36,37,38,39}: rich
tf: tensorflow
commands={[extra]commands}
allowlist_externals={[extra]allowlist_externals}
commands=
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not perf"
{[core]commands}
allowlist_externals=codacy
[testenv:py{27,py2}{,-tf}{,-keras}]
commands=
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not perf" -o addopts= -v --tb=short -rxs -W=error --durations=10
{[coverage]commands}
{[core]commands}
# no cython/numpy/pandas
[testenv:py{34,py2,py3}]
deps={[extra]deps}
deps={[core]deps}
[testenv:perf]
deps=