Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
- "src/fastapi_maintenance/**"
- "tests/**"
- ".github/workflows/coverage.yml"
- "scripts/test.sh"
- "pyproject.toml"
- "uv.lock"
workflow_call:
Expand Down Expand Up @@ -38,26 +37,14 @@ jobs:

- name: Run tests with coverage
run: |
bash scripts/test.sh
uv run coverage run -m pytest tests
uv run coverage combine
uv run coverage report
uv run coverage xml
env:
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py
CONTEXT: ${{ runner.os }}-py

- name: Store coverage files
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage
include-hidden-files: true

- name: Store coverage HTML
uses: actions/upload-artifact@v4
with:
name: coverage-html
path: htmlcov
include-hidden-files: true

- name: Store coverage XML
uses: actions/upload-artifact@v4
with:
Expand Down