diff --git a/.github/workflows/R-CMD-check-ubuntu.yaml b/.github/workflows/R-CMD-check-ubuntu.yaml index 510a4e1..d1d5e91 100644 --- a/.github/workflows/R-CMD-check-ubuntu.yaml +++ b/.github/workflows/R-CMD-check-ubuntu.yaml @@ -91,6 +91,17 @@ jobs: run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true shell: bash + - name: Test coverage + if: runner.os == 'Linux' && matrix.config.r == 'release' + run: | + cov <- covr::package_coverage( + quiet = FALSE, + clean = FALSE, + install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package") + ) + covr::to_cobertura(cov) + shell: Rscript {0} + - uses: codecov/codecov-action@v4 if: runner.os == 'Linux' && matrix.config.r == 'release' with: