Skip to content

Commit dd2f30c

Browse files
author
github-actions
committed
fix: Configure test results upload for Codecov
Add explicit file path and flags to test-results-action to ensure JUnit XML test results are properly uploaded to Codecov.
1 parent 9316526 commit dd2f30c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
run: uv sync --group dev --all-extras
6363

6464
- name: Run tests
65-
run: uv run pytest tests/ --cov --junitxml=junit.xml -o junit_family=legacy --cov=src/ryandata_address_utils --cov-report=xml --cov-report=term
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
6666

6767
- name: Upload coverage to Codecov
6868
uses: codecov/codecov-action@v4
@@ -78,3 +78,7 @@ jobs:
7878
uses: codecov/test-results-action@v1
7979
with:
8080
token: ${{ secrets.CODECOV_TOKEN }}
81+
file: ./junit.xml
82+
flags: unittests
83+
name: codecov-umbrella
84+
fail_ci_if_error: false

0 commit comments

Comments
 (0)