Skip to content

Commit

Permalink
fix test code cov
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyhanson committed Jul 1, 2024
1 parent 908d17d commit ee13099
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/R-CMD-check-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ee13099

Please sign in to comment.