From c8c3fa632fe577d8d4963a68437b9b5c8bbc221f Mon Sep 17 00:00:00 2001 From: schuemie Date: Tue, 29 Oct 2024 08:24:20 +0100 Subject: [PATCH] Using codecov action to upload covr results --- .github/workflows/R_CMD_check_Hades.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/R_CMD_check_Hades.yaml b/.github/workflows/R_CMD_check_Hades.yaml index 680290e..306c915 100644 --- a/.github/workflows/R_CMD_check_Hades.yaml +++ b/.github/workflows/R_CMD_check_Hades.yaml @@ -99,9 +99,23 @@ jobs: - name: Test coverage if: runner.os == 'Linux' - run: covr::codecov(token = "${{ secrets.CODECOV_TOKEN }}") + 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' + with: + file: ./cobertura.xml + plugin: noop + disable_search: true + token: ${{ secrets.CODECOV_TOKEN }} + Release: needs: R-CMD-Check