Skip to content
Merged
Show file tree
Hide file tree
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
25 changes: 25 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run tests and upload coverage

on: push

jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: uv sync
run: |
uv sync --all-groups --all-extras

- name: Run tests
run: uv run make coverage

- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ _build
.VSCodeCounter

uv.lock

.coverage
coverage.xml
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ test:
test-matrix:
nox

.PHONY: coverage
coverage:
pytest --cov --cov-branch --cov-report=xml

.PHONY: docs-html
docs-html:
make --directory docs/ clean && make --directory docs/ html
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ test = [
"nox>=2025.2.9",
"pytest-xdist",
"pytest>=7.0",
"pytest-cov",
"sphinx_design",
"sphinxcontrib-plantuml",
]
Expand Down
Loading