From 22d156d5cb2c672774ff7dc986569dea0a6e8a49 Mon Sep 17 00:00:00 2001 From: Patrick Breheny Date: Wed, 5 Mar 2025 15:49:54 -0600 Subject: [PATCH] modifying test coverage workflow --- .github/workflows/test-coverage.yaml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index e53fbe4a..8082e48a 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -32,6 +32,7 @@ jobs: - name: Test coverage run: | cov <- covr::package_coverage( + type = 'all', quiet = FALSE, clean = FALSE, install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package") @@ -40,7 +41,7 @@ jobs: covr::to_cobertura(cov) shell: Rscript {0} - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v5 with: # Fail if error if not on PR, or if on PR and token is given fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }} @@ -48,17 +49,3 @@ jobs: plugin: noop disable_search: true token: ${{ secrets.CODECOV_TOKEN }} - - - name: Show testthat output - if: always() - run: | - ## -------------------------------------------------------------------- - find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true - shell: bash - - - name: Upload test results - if: failure() - uses: actions/upload-artifact@v4 - with: - name: coverage-test-failures - path: ${{ runner.temp }}/package