Skip to content

Commit 1f854fe

Browse files
committed
updated codecov to include test analytics
1 parent 4304bc6 commit 1f854fe

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,22 @@ jobs:
137137
REDIS_URL: "redis://:${{ secrets.REDIS_PASSWORD || 'redis_default_password_for_ci' }}@localhost:${{ secrets.REDIS_PORT || '6379' }}/${{ secrets.REDIS_DB || '0' }}"
138138
run: |
139139
cd backend
140-
python -m pytest --cov=. --cov-report=xml || true
140+
python -m pytest --cov=. --cov-report=xml --junitxml=junit.xml -o junit_family=legacy || true
141141
142142
- name: Upload coverage to Codecov
143143
uses: codecov/codecov-action@v3
144144
with:
145145
file: ./backend/coverage.xml
146-
token: ${{ secrets.CODECOV_TOKEN }}
146+
slug: "TechWithTy/django-supabase-template"
147147
fail_ci_if_error: false
148148

149+
- name: Upload test results to Codecov
150+
if: ${{ !cancelled() }}
151+
uses: codecov/test-results-action@v1
152+
with:
153+
token: ${{ secrets.CODECOV_TOKEN }}
154+
file: ./backend/junit.xml
155+
149156
build:
150157
name: Build Docker Image
151158
needs: test

0 commit comments

Comments
 (0)