Skip to content

Commit ad9be8c

Browse files
committed
fix codecov upload (closes #381)
The codecov action can generate a usable report itself, but it needs the coverage package installed and accessible. This is not the case anymore, since it's now only installed in the hatch test environment. So we generate the report ourselves.
1 parent 28d6261 commit ad9be8c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • {{cookiecutter.project_name}}/.github/workflows

{{cookiecutter.project_name}}/.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,7 @@ jobs:
5555
PLATFORM: ${{ matrix.os }}
5656
DISPLAY: :42
5757
run: uvx hatch test --cover --python ${{ matrix.python }}
58+
- name: generate coverage report
59+
run: uvx coverage xml
5860
- name: Upload coverage
5961
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)