mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-01 18:47:48 +00:00
CI: Run both non-coverage and coverage build/test jobs
Change-Id: Ia58112b745a0b34d2dcef782ad729f165629eb22
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- tox-py37
|
- tox-py37
|
||||||
|
- tox-cover
|
||||||
- tox-docs
|
- tox-docs
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
12
tox.ini
12
tox.ini
@@ -7,9 +7,19 @@ deps = -r{toxinidir}/requirements.txt
|
|||||||
changedir = {toxinidir}
|
changedir = {toxinidir}
|
||||||
commands =
|
commands =
|
||||||
# simulate actual user interaction
|
# simulate actual user interaction
|
||||||
pip install -e {toxinidir}
|
pip install -e .
|
||||||
pytest -vv
|
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]
|
[testenv:docs]
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user