Skip to content

Commit ded3b97

Browse files
author
github-actions
committed
fix: Combine coverage and test results upload
Use single codecov-action to upload both coverage.xml and junit.xml files together, which should properly process test analytics.
1 parent dd2f30c commit ded3b97

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,13 @@ jobs:
6262
run: uv sync --group dev --all-extras
6363

6464
- name: Run tests
65-
run: uv run pytest tests/ -v --tb=short --cov=src/ryandata_address_utils --cov-report=xml --cov-report=term --junitxml=junit.xml -o junit_family=legacy
65+
run: uv run pytest tests/ -v --tb=short --cov=src/ryandata_address_utils --cov-report=xml --cov-report=term --junitxml=junit.xml
6666

67-
- name: Upload coverage to Codecov
67+
- name: Upload coverage and test results to Codecov
6868
uses: codecov/codecov-action@v4
6969
with:
7070
token: ${{ secrets.CODECOV_TOKEN }}
71-
file: ./coverage.xml
72-
flags: unittests
73-
name: codecov-umbrella
74-
fail_ci_if_error: false
75-
76-
- name: Upload test results to Codecov
77-
if: ${{ !cancelled() }}
78-
uses: codecov/test-results-action@v1
79-
with:
80-
token: ${{ secrets.CODECOV_TOKEN }}
81-
file: ./junit.xml
71+
file: ./coverage.xml,./junit.xml
8272
flags: unittests
8373
name: codecov-umbrella
8474
fail_ci_if_error: false

0 commit comments

Comments
 (0)