Skip to content

Commit 9316526

Browse files
author
github-actions
committed
ci: Add test results upload to Codecov
Add JUnit XML output to pytest and upload test results to Codecov for detailed test analytics and failure tracking.
1 parent 42c1728 commit 9316526

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 7 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/ -v --tb=short --cov=src/ryandata_address_utils --cov-report=xml --cov-report=term
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
6666

6767
- name: Upload coverage to Codecov
6868
uses: codecov/codecov-action@v4
@@ -72,3 +72,9 @@ jobs:
7272
flags: unittests
7373
name: codecov-umbrella
7474
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 }}

0 commit comments

Comments
 (0)