tqdm/tox.ini

74 lines
1.6 KiB
INI
Raw Normal View History

# Tox (https://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
# deprecation warning: py{34}
envlist = py{27,34,35,36,37,38,39,py2,py3}{,-tf}{,-keras}, perf, flake8, setup.py
isolated_build = True
[coverage]
deps =
2020-10-19 12:14:53 +00:00
pytest
pytest-cov
2020-11-21 00:49:07 +00:00
py{37,38,39}: pytest-asyncio
coverage
2015-06-18 22:02:13 +00:00
coveralls
commands =
2020-10-24 21:35:32 +00:00
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf"
2016-10-07 10:06:19 +00:00
- coveralls
2020-11-17 14:22:57 +00:00
- codacy report -r coverage.xml
allowlist_externals = codacy
[extra]
deps =
{[coverage]deps}
codecov
commands =
2020-12-24 22:21:41 +00:00
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf"
- coveralls
codecov
2020-11-17 14:22:57 +00:00
- codacy report -r coverage.xml
allowlist_externals = {[coverage]allowlist_externals}
[testenv]
passenv = CI TOXENV CODECOV_* COVERALLS_* CODACY_* HOME
deps =
{[extra]deps}
cython
numpy
pandas
2020-11-16 00:49:47 +00:00
tf: tensorflow
keras: keras
commands = {[extra]commands}
allowlist_externals = {[extra]allowlist_externals}
# no cython/numpy/pandas for py{py2,py3,26,33,34}
[testenv:pypy]
deps = {[extra]deps}
[testenv:pypy3]
deps = {[extra]deps}
2016-12-15 12:21:59 +00:00
[testenv:py34]
deps = {[extra]deps}
[testenv:perf]
2020-11-17 13:57:42 +00:00
deps = pytest
2020-12-24 22:21:41 +00:00
commands = pytest -k tests_perf
2017-05-29 15:40:15 +00:00
[testenv:flake8]
deps = flake8
2020-11-17 14:22:57 +00:00
commands = flake8 -j 8 --count --statistics .
[testenv:setup.py]
deps =
docutils
pygments
2019-02-10 18:38:28 +00:00
py-make>=0.1.0
commands =
2020-10-07 15:06:51 +00:00
{envpython} setup.py check --restructuredtext --metadata --strict
{envpython} setup.py make none