File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 4646 fail-fast : false
4747 matrix :
4848 include :
49- - os : ubuntu-latest
5049 - os : ubuntu-24.04-arm
5150 - os : windows-latest
5251 - os : macos-latest
5857 - uses : ./.github/actions/setup_rye
5958 - run : rye test -a
6059
60+ pytest-cov :
61+ name : Run tests and collect coverage
62+ runs-on : ubuntu-latest
63+ steps :
64+ - name : Checkout
65+ uses : actions/checkout@v4
66+
67+ - name : Set up Python
68+ uses : actions/setup-python@v5
69+
70+ - name : Setup rye
71+ uses : ./.github/actions/setup_rye
72+
73+ - name : Run tests
74+ run : rye test -a -- --cov --cov-branch --cov-report=xml
75+
76+ - name : Upload results to Codecov
77+ uses : codecov/codecov-action@v5
78+ with :
79+ token : ${{ secrets.CODECOV_TOKEN }}
80+
6181 docs :
6282 name : Documentation build
6383 runs-on : ubuntu-latest
7898 - pre-commit
7999 - mypy
80100 - pytest
101+ - pytest-cov
81102 - docs
82103
83104 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -19,3 +19,7 @@ requirements-dev.lock
1919
2020# rye is the primary tool, uv is only used for on-the-fly setups
2121uv.lock
22+
23+ # coverage files
24+ .coverage
25+ coverage.xml
Original file line number Diff line number Diff line change 2121 hooks :
2222 - id : taplo-format
2323 # lint fetches schemas online at each call, deactivate for now
24- - id : taplo-lint
24+ # - id: taplo-lint # excluded because json is fetched online and not reachable (503)
You can’t perform that action at this time.
0 commit comments