From 5313921222e8a4770d811e003db685a703123ae3 Mon Sep 17 00:00:00 2001 From: Arne Binder Date: Tue, 24 Oct 2023 22:36:15 +0200 Subject: [PATCH] fix codecov upload --- .github/workflows/test.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index de6d09d6..566e8cb0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -65,14 +65,15 @@ jobs: run: poetry install --no-interaction #---------------------------------------------- - # run test suite + # run test suite and upload coverage data #---------------------------------------------- - name: Run tests with coverage run: | source .venv/bin/activate - pytest -k "not slow" --cov --cov-fail-under=90 --cov-report term-missing - + pytest -k "not slow" --cov --cov-fail-under=90 --cov-report term-missing --cov-report xml:coverage.xml - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 + with: + files: ./coverage.xml env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}