From ee130993a1fe33ab400d7e15ba1ce03f3269d017 Mon Sep 17 00:00:00 2001 From: Jeffrey Hanson Date: Mon, 1 Jul 2024 16:27:41 +1200 Subject: [PATCH] fix test code cov --- .github/workflows/R-CMD-check-ubuntu.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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: