Skip to content

Commit d143f69

Browse files
chore(ci): add JUnit XML test results upload to Codecov
1 parent e40f17c commit d143f69

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
DJANGO_SETTINGS_MODULE: tests.settings
9090
run: |
9191
# Run all tests with PostgreSQL anonymizer extension available
92-
pytest tests/ -v --cov=django_postgres_anon --cov-report=xml --cov-report=term-missing --cov-fail-under=87
92+
pytest tests/ -v --cov=django_postgres_anon --cov-report=xml --cov-report=term-missing --cov-fail-under=87 --junitxml=junit.xml -o junit_family=legacy
9393
9494
- name: Upload coverage to Codecov
9595
uses: codecov/codecov-action@v4
@@ -100,6 +100,12 @@ jobs:
100100
name: codecov-umbrella
101101
fail_ci_if_error: false
102102

103+
- name: Upload test results to Codecov
104+
if: ${{ !cancelled() }}
105+
uses: codecov/test-results-action@v1
106+
with:
107+
token: ${{ secrets.CODECOV_TOKEN }}
108+
103109
lint:
104110
runs-on: ubuntu-latest
105111
steps:

0 commit comments

Comments
 (0)