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