From 383785e3375014be701cb7c94e614aa574bf5b76 Mon Sep 17 00:00:00 2001 From: jvkolsto Date: Mon, 18 Nov 2024 13:14:54 +0100 Subject: [PATCH] Attempt to append coverage files from numba and non-numba tests. --- .github/workflows/tests.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4edda40..7e9543c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -41,12 +41,7 @@ jobs: echo "NUMBA_DISABLE_JIT=1" >> $GITHUB_ENV - name: Test with pytest run: | - pytest --cov --cov-report=xml - # - name: Upload coverage reports to Codecov - # uses: codecov/codecov-action@v3 - # env: - # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - + pytest --cov=skchange --cov-report=xml --cov-append pytests-no-numba: name: pytests-no-numba @@ -64,8 +59,15 @@ jobs: python -m pip install pytest - name: Test with pytest run: | - pytest --cov --cov-report=xml --cov-append + pytest --cov=skchange --cov-report=xml --cov-append - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + upload-code-cov: + needs: [pytests-numba, pytests-no-numba] + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}