From ba4f5396b441333ed3d7ec7422242994756f531f Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Sat, 9 Nov 2024 16:00:33 +0100 Subject: [PATCH] add: codecov --- .github/workflows/ci.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df2bca5..06cedc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,16 +56,16 @@ jobs: - name: Test with pytest run: | - pytest -r sx tests/ + pytest --cov --cov-report=xml -r sx tests/ -# - name: Report core project coverage with Codecov -# if: >- -# github.event_name != 'schedule' && -# matrix.os == 'ubuntu-latest' -# uses: codecov/codecov-action@v4 -# with: -# fail_ci_if_error: true -# files: ./coverage.xml -# flags: unittests-${{ matrix.python-version }} -# name: pylhe -# token: ${{ secrets.CODECOV_TOKEN }} + - name: Report core project coverage with Codecov + if: >- + github.event_name != 'schedule' && + matrix.os == 'ubuntu-latest' + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + files: ./coverage.xml + flags: unittests-${{ matrix.python-version }} + name: babyyoda + token: ${{ secrets.CODECOV_TOKEN }}