tqdm/tox.ini

64 lines
1.5 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]
2021-02-22 22:27:58 +00:00
# deprecation warning: py{27,py2,34,35}
2021-02-17 04:15:29 +00:00
envlist=py{27,34,35,36,37,38,39,py2,py3}{,-tf}{,-keras}, perf, setup.py
isolated_build=True
2021-02-22 22:27:58 +00:00
[core]
deps=
2020-10-19 12:14:53 +00:00
pytest
pytest-cov
2021-01-03 22:02:40 +00:00
pytest-timeout
2020-11-21 00:49:07 +00:00
py{37,38,39}: pytest-asyncio
coverage
2015-06-18 22:02:13 +00:00
coveralls
codecov
commands=
2021-02-22 22:27:58 +00:00
- coveralls
codecov -X pycov -e TOXENV
- codacy report -l Python -r coverage.xml --partial
[testenv]
2021-02-22 22:27:58 +00:00
passenv=TOXENV CI GITHUB_* CODECOV_* COVERALLS_* CODACY_* HOME
deps=
2021-02-22 22:27:58 +00:00
{[core]deps}
cython
2021-01-10 23:39:25 +00:00
matplotlib
numpy
pandas
2020-11-16 00:49:47 +00:00
keras: keras
2021-01-10 23:39:25 +00:00
py{36,37,38,39}: rich
tf: tensorflow
2021-02-22 22:27:58 +00:00
commands=
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not perf"
{[core]commands}
allowlist_externals=codacy
2020-12-25 01:40:26 +00:00
[testenv:py{27,py2}{,-tf}{,-keras}]
commands=
2021-01-04 03:00:27 +00:00
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not perf" -o addopts= -v --tb=short -rxs -W=error --durations=10
2021-02-22 22:27:58 +00:00
{[core]commands}
2016-12-15 12:21:59 +00:00
2020-12-25 01:40:26 +00:00
# no cython/numpy/pandas
[testenv:py{34,py2,py3}]
2021-02-22 22:27:58 +00:00
deps={[core]deps}
[testenv:perf]
deps=
2021-01-03 22:02:40 +00:00
pytest
pytest-timeout
commands=pytest -k perf
2017-05-29 15:40:15 +00:00
[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