mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-23 06:40:23 -07:00
ci(M02): enforce coverage gate on combined pytest+server coverage
Made-with: Cursor
This commit is contained in:
parent
fbd17d1162
commit
fa0575c929
2 changed files with 4 additions and 1 deletions
3
.github/workflows/run_tests.yaml
vendored
3
.github/workflows/run_tests.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue