Skip to content

Commit 55b4476

Browse files
authored
ci: upload test results to codecov (#1327)
1 parent 08df96a commit 55b4476

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/pytest-cov.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ jobs:
3535
- name: Install dependencies and library
3636
run: poetry install
3737
- name: Run tests with coverage
38-
run: poetry run pytest --cov --cov-branch --cov-report=xml
39-
- name: Upload coverage reports to Codecov
38+
run: poetry run pytest --cov --junitxml=junit.xml -o junit_family=legacy
39+
- name: Upload coverage to Codecov
4040
uses: codecov/codecov-action@v5
4141
with:
4242
token: ${{ secrets.CODECOV_TOKEN }}
43+
- name: Upload test results to Codecov
44+
if: ${{ !cancelled() }}
45+
uses: codecov/test-results-action@v1
46+
with:
47+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)