ci(M02): enforce coverage gate on combined pytest+server coverage

Made-with: Cursor
This commit is contained in:
Michael Cahill 2026-03-08 15:48:46 -07:00
parent fbd17d1162
commit fa0575c929
2 changed files with 4 additions and 1 deletions

View file

@ -80,7 +80,7 @@ jobs:
- name: Run tests
run: |
wait-for-it --service 127.0.0.1:7860 -t 20
python -m pytest -vv --junitxml=test/results.xml --cov . --cov-fail-under=60 --cov-report=xml --verify-base-url test
python -m pytest -vv --junitxml=test/results.xml --cov . --cov-report=xml --verify-base-url test
- name: Kill test server
if: always()
run: curl -vv -XPOST http://127.0.0.1:7860/sdapi/v1/server-stop && sleep 10
@ -88,6 +88,7 @@ jobs:
run: |
python -m coverage combine .coverage*
python -m coverage report -i
python -m coverage report --fail-under=60 -i
python -m coverage html -i
- name: Upload main app output
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02