1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00

ci: the coverage floor follows the measured 77%, and one leg uploads its report

The floor stayed at 50% while CI measures 77% on every leg; it is now
76%. The Python 3.12 / SQLite leg uploads the HTML report as the
coverage-html artifact, also when the tests fail.
This commit is contained in:
catborise 2026-10-18 22:55:00 +03:00
parent 5c68050ce0
commit 2f58e18a22
2 changed files with 14 additions and 2 deletions

View file

@ -95,6 +95,18 @@ jobs:
coverage run manage.py test
coverage report --skip-covered
# The per-file report of one leg, to see what a change left untested
- name: Store Coverage Report
if: always() && matrix.python-version == '3.12' && matrix.database == 'sqlite'
run: coverage html -d coverage-html --fail-under=0
- name: Upload Coverage Report
if: always() && matrix.python-version == '3.12' && matrix.database == 'sqlite'
uses: actions/upload-artifact@v4
with:
name: coverage-html
path: coverage-html
- name: Validate OpenAPI Schema
run: python manage.py spectacular --validate --fail-on-warn --file /dev/null

View file

@ -15,5 +15,5 @@ source = ["."]
omit = [".venv/*", "*/migrations/*", "*/tests/*", "manage.py", "webvirtcloud/settings*.py"]
[tool.coverage.report]
# Measured 51% without the live libvirt suite (2026-10-03); raise as tests grow.
fail_under = 50
# CI measures 77% without the live libvirt suite (2026-10-18); raise as tests grow.
fail_under = 76