Skip to content

Saleor Core: the high performance, composable, headless commerce API.

chore: add Codecov test analytics (#17645)

Tom Hu41eb2fb41135
diff --git a/.github/workflows/tests-and-linters.yml b/.github/workflows/tests-and-linters.yml
index 15746c7282..c293e4e915 100644
--- a/.github/workflows/tests-and-linters.yml
+++ b/.github/workflows/tests-and-linters.yml
@@ -91,11 +91,18 @@ jobs:
--cov \
--cov-report= \
--junitxml=junit/test-results.xml \
+ -o junit_family=legacy \
--django-db-bench=${{ env.BENCH_PATH }} \
-n logical
+ - name: Upload test results to Codecov
+ if: ${{ !cancelled() }} # Run even if tests fail
+ uses: codecov/test-results-action@v1
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+
# Publish coverage and test results
- - uses: codecov/codecov-action@v4
+ - uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}