From 30d345dd7d958069401b0f3a13172153172105af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Sat, 15 Jun 2024 10:07:29 +0100 Subject: [PATCH] Try fixing coverage --- .github/workflows/ci.yaml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fb919c183..ebee6add6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -51,6 +51,26 @@ jobs: run: poe test - if: ${{ env.IS_MAIN_PYTHON == 'true' }} - name: Upload code coverage - continue-on-error: true - run: poetry run codecov + name: Store the coverage report + uses: actions/upload-artifact@v4 + with: + name: coverage-report + path: .reports/coverage.xml + + upload-coverage: + name: Upload coverage report + needs: test + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - name: Get the coverage report + uses: actions/download-artifact@v4 + with: + name: coverage-report + + - name: Upload code coverage + uses: codecov/codecov-action@v4 + with: + files: ./coverage.xml + use_oidc: true