From 41c133e00e773d6c80d1dba4cc210ba719685b0d Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Thu, 1 Feb 2024 06:19:40 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Bump=20Codecov=20action=20to=20v?= =?UTF-8?q?4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-cd.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index d06fcade3..ac8fa6421 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -347,8 +347,29 @@ jobs: ${{ needs.build-pure-python-dists.outputs.sdist-filename }} workflow-artifact-name: >- ${{ needs.pre-setup.outputs.dists-artifact-name }} - - name: Upload coverage - uses: aio-libs/upload-coverage@v22.1.4 + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + name: coverage + path: ${{ runner.temp }}/coverage + - name: Install coverage + run: | + pip install coverage + shell: bash + - name: Combine coverage reports + run: | + coverage combine '${{ runner.temp }}/coverage' + shell: bash + - name: Generate XML coverage report + run: | + coverage xml + shell: bash + - name: Send coverage data to Codecov + uses: codecov/codecov-action@v4 + with: + files: coverage.xml + flags: CI-GHA + token: ${{ secrets.CODECOV_TOKEN }} pre-deploy: name: Pre-Deploy