File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Run tests and upload coverage
2+
3+ on : push
4+
5+ jobs :
6+ test :
7+ name : Run tests and collect coverage
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+
12+ - name : Install uv
13+ uses : astral-sh/setup-uv@v5
14+
15+ - name : uv sync
16+ run : |
17+ uv sync --all-groups --all-extras
18+
19+ - name : Run tests
20+ run : uv run make coverage
21+
22+ - name : Upload results to Codecov
23+ uses : codecov/codecov-action@v5
24+ with :
25+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 2121.VSCodeCounter
2222
2323uv.lock
24+
25+ .coverage
26+ coverage.xml
Original file line number Diff line number Diff line change 1414test-matrix :
1515 nox
1616
17+ .PHONY : coverage
18+ coverage :
19+ pytest --cov --cov-branch --cov-report=xml
20+
1721.PHONY : docs-html
1822docs-html :
1923 make --directory docs/ clean && make --directory docs/ html
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ test = [
3232 " nox>=2025.2.9" ,
3333 " pytest-xdist" ,
3434 " pytest>=7.0" ,
35+ " pytest-cov" ,
3536 " sphinx_design" ,
3637 " sphinxcontrib-plantuml" ,
3738]
You can’t perform that action at this time.
0 commit comments