[ci] Codecov: enable support for test run reports

This commit is contained in:
Yann Lanthony 2025-01-28 16:27:47 +01:00
parent e51bb93bf0
commit 0f1cde127b

View file

@ -53,11 +53,16 @@ jobs:
- name: Test with pytest - name: Test with pytest
run: | run: |
pytest tests/ pytest tests/
pytest --cov --cov-report=xml pytest --cov --cov-report=xml --junitxml=junit.xml
- name: Upload results to Codecov - name: Upload results to Codecov
uses: codecov/codecov-action@v5 uses: codecov/codecov-action@v5
with: with:
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
build-windows: build-windows:
runs-on: windows-latest runs-on: windows-latest