Skip to content

Commit

Permalink
Using codecov action to upload covr results
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed Oct 29, 2024
1 parent 6e2c628 commit c8c3fa6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/R_CMD_check_Hades.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c8c3fa6

Please sign in to comment.