Skip to content

Commit 87d3a6d

Browse files
committed
ci: bump Codecov action to v5
Had to manually set the plugins to `gcov` to prevent the Codecov action from running pytest-cov, which genetates empty coverage. Reports must be generated a-priori with coverage since tkinter runs on a separate process.
1 parent e17add7 commit 87d3a6d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/main.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ jobs:
2121
- name: Setup
2222
run: pip install .[dev]
2323

24-
- name: Lint
25-
run: pre-commit run -a
26-
2724
- name: Unittests
2825
uses: coactions/setup-xvfb@v1
2926
with:
30-
run: coverage run -m pytest
27+
run: |
28+
coverage run -m pytest
3129
3230
- name: Upload coverage to Codecov
33-
uses: codecov/codecov-action@v3
31+
uses: codecov/codecov-action@v5
3432
with:
3533
token: ${{ secrets.CODECOV_TOKEN }}
36-
file: ./coverage.xml
34+
files: ./coverage.xml
35+
plugins: "gcov" # HACK: prevent codecov from running pytest-cov
36+
verbose: true
3737
fail_ci_if_error: true

0 commit comments

Comments
 (0)