ci: enforce workflow coverage gate

This commit is contained in:
Dariusz L
2026-08-02 20:15:06 +02:00
parent 01c6dc62cb
commit 7d5adbc1fa
2 changed files with 21 additions and 4 deletions
+14 -3
View File
@@ -46,7 +46,7 @@ jobs:
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.10"
cache: pip
@@ -54,8 +54,19 @@ jobs:
- name: Install Python dependencies
run: python -m pip install --upgrade pip && python -m pip install -e ".[dev]"
- name: Run Python tests
run: python -m pytest
- name: Run Python tests with workflow coverage
run: >-
python -m pytest -q --cov=core.workflow
--cov-report=term-missing
--cov-report=xml:coverage-workflow.xml
--cov-fail-under=75
- name: Upload workflow coverage report
uses: actions/upload-artifact@v4
with:
name: workflow-coverage
path: coverage-workflow.xml
if-no-files-found: error
- name: Run Ruff
run: python -m ruff check __init__.py core