CI: Run both non-coverage and coverage build/test jobs

Change-Id: Ia58112b745a0b34d2dcef782ad729f165629eb22
This commit is contained in:
Jan Kundrát
2020-04-13 15:37:43 +02:00
parent 3b45968799
commit ab6a91692b
2 changed files with 16 additions and 5 deletions

View File

@@ -2,9 +2,10 @@
- project:
check:
jobs:
- tox-py37
- tox-docs
- tox-py37
- tox-cover
- tox-docs
gate:
jobs:
- tox-py37
- tox-docs
- tox-py37
- tox-docs

12
tox.ini
View File

@@ -7,9 +7,19 @@ deps = -r{toxinidir}/requirements.txt
changedir = {toxinidir}
commands =
# simulate actual user interaction
pip install -e {toxinidir}
pip install -e .
pytest -vv
[testenv:cover]
deps =
-r{toxinidir}/requirements.txt
pytest-cov
commands =
pip install -e .
pytest --cov=gnpy --cov=examples -v
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:docs]
deps =
-r{toxinidir}/requirements.txt