Merge "Add coverage job"

This commit is contained in:
Zuul 2024-12-03 21:49:13 +00:00 committed by Gerrit Code Review
commit 790273db20
2 changed files with 13 additions and 0 deletions

@ -2,6 +2,7 @@
queue: freezer queue: freezer
templates: templates:
- check-requirements - check-requirements
- openstack-cover-jobs
- openstack-python3-jobs - openstack-python3-jobs
- openstack-python3-jobs-arm64 - openstack-python3-jobs-arm64
- publish-openstack-docs-pti - publish-openstack-docs-pti

12
tox.ini

@ -44,6 +44,18 @@ basepython = python3.9
[testenv:py312] [testenv:py312]
basepython = python3.12 basepython = python3.12
[testenv:cover]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage run --source freezerclient --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:docs] [testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -b html doc/source doc/build/html commands = sphinx-build -b html doc/source doc/build/html