Skip to content

Commit

Permalink
tests: minify tox
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Feb 22, 2021
1 parent f2f47d5 commit b612be4
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions tox.ini
Expand Up @@ -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
Expand All @@ -24,32 +18,34 @@ 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
pandas
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=
Expand Down

0 comments on commit b612be4

Please sign in to comment.