Skip to content

Commit

Permalink
ci: bump Codecov action to v5
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gnikit committed Nov 17, 2024
1 parent e17add7 commit 87d3a6d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ jobs:
- name: Setup
run: pip install .[dev]

- name: Lint
run: pre-commit run -a

- name: Unittests
uses: coactions/setup-xvfb@v1
with:
run: coverage run -m pytest
run: |
coverage run -m pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
files: ./coverage.xml
plugins: "gcov" # HACK: prevent codecov from running pytest-cov
verbose: true
fail_ci_if_error: true

0 comments on commit 87d3a6d

Please sign in to comment.