Skip to content

Commit 5af6104

Browse files
ilia-katsflying-sheepgrst
authored
fix codecov upload (closes #381) (#382)
* 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. * use coverage from hatch env * Update {{cookiecutter.project_name}}/.github/workflows/test.yaml --------- Co-authored-by: Philipp A. <flying-sheep@web.de> Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
1 parent ec8a4e2 commit 5af6104

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 hatch run hatch-test.py${{ matrix.python }}:coverage xml
5860
- name: Upload coverage
5961
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)