Skip to content

Commit 41c133e

Browse files
committed
🧪 Bump Codecov action to v4
1 parent adb1976 commit 41c133e

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

‎.github/workflows/ci-cd.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,29 @@ jobs:
347347
${{ needs.build-pure-python-dists.outputs.sdist-filename }}
348348
workflow-artifact-name: >-
349349
${{ needs.pre-setup.outputs.dists-artifact-name }}
350-
- name: Upload coverage
351-
uses: aio-libs/[email protected]
350+
- name: Download artifacts
351+
uses: actions/download-artifact@v3
352+
with:
353+
name: coverage
354+
path: ${{ runner.temp }}/coverage
355+
- name: Install coverage
356+
run: |
357+
pip install coverage
358+
shell: bash
359+
- name: Combine coverage reports
360+
run: |
361+
coverage combine '${{ runner.temp }}/coverage'
362+
shell: bash
363+
- name: Generate XML coverage report
364+
run: |
365+
coverage xml
366+
shell: bash
367+
- name: Send coverage data to Codecov
368+
uses: codecov/codecov-action@v4
369+
with:
370+
files: coverage.xml
371+
flags: CI-GHA
372+
token: ${{ secrets.CODECOV_TOKEN }}
352373

353374
pre-deploy:
354375
name: Pre-Deploy

0 commit comments

Comments
 (0)