mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +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:
parent
5c68050ce0
commit
2f58e18a22
2 changed files with 14 additions and 2 deletions
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue