From 643c52584232fce028e5b75b33ad791104211775 Mon Sep 17 00:00:00 2001 From: Cristian Vera Date: Sat, 30 Oct 2021 19:34:34 -0300 Subject: [PATCH] Add github action for upload coverge to codecov --- .github/workflows/main.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 684e603a9..81c29539f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -165,11 +165,15 @@ jobs: if: "matrix.use_coverage" run: "tox -e ${{ matrix.tox_env }}-coverage" - - name: Upload coverage - if: matrix.use_coverage && github.repository == 'pytest-dev/pytest' - env: - CODECOV_NAME: ${{ matrix.name }} - run: bash scripts/upload-coverage.sh -F GHA,${{ runner.os }} + - name: Generate coverge report + run: python -m coverage xml + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 + with: + fail_ci_if_error: true + files: ./coverage.xml + verbose: true deploy: if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest'