Files
oopt-gnpy/tox.ini
Jan Kundrát 491a05c5a7 Upgrade pytest, and list it as a test-only dependency
Change-Id: Id1cbfb88d3034fc01f302af53bbd689afe54ffa5
2020-04-22 14:53:48 +02:00

25 lines
607 B
INI

[tox]
envlist = py37
skipsdist = True
[testenv]
deps =
-r{toxinidir}/requirements.txt
pytest>=5.0.0,<6
cover: pytest-cov
changedir = {toxinidir}
usedevelop = True
setenv =
cover: CI_COVERAGE_OPTS=--cov=gnpy --cov=examples
commands =
pytest {env:CI_COVERAGE_OPTS:} -vv {posargs}
cover: coverage html -d cover
cover: coverage xml -o cover/coverage.xml
[testenv:docs]
deps =
rstcheck
commands =
sphinx-build -E -W --keep-going -q -b html docs/ doc/build/html
rstcheck --ignore-roles cite --ignore-directives automodule --recursive --ignore-messages '(Duplicate explicit target name.*)' {toxinidir}