From 6e2c6283d68a40ca37476c5f54d0f985a39b20fb Mon Sep 17 00:00:00 2001 From: schuemie Date: Tue, 29 Oct 2024 07:58:18 +0100 Subject: [PATCH] Copying codecov code from PLP, where it still seems to be working --- .github/workflows/R_CMD_check_Hades.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/R_CMD_check_Hades.yaml b/.github/workflows/R_CMD_check_Hades.yaml index 5a6378b..680290e 100644 --- a/.github/workflows/R_CMD_check_Hades.yaml +++ b/.github/workflows/R_CMD_check_Hades.yaml @@ -26,7 +26,6 @@ jobs: env: GITHUB_PAT: ${{ secrets.GH_TOKEN }} - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} R_REMOTES_NO_ERRORS_FROM_WARNINGS: true RSPM: ${{ matrix.config.rspm }} CDM5_ORACLE_CDM_SCHEMA: ${{ secrets.CDM5_ORACLE_CDM_SCHEMA }} @@ -93,14 +92,14 @@ jobs: path: check/*.tar.gz - name: Install covr - if: runner.os == 'macOS' + if: runner.os == 'Linux' run: | - install.packages("covr") + remotes::install_cran("covr") shell: Rscript {0} - + - name: Test coverage - if: runner.os == 'macOS' - run: covr::codecov() + if: runner.os == 'Linux' + run: covr::codecov(token = "${{ secrets.CODECOV_TOKEN }}") shell: Rscript {0} Release: