Skip to content

Commit

Permalink
Use devtools to calculate coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
wkmor1 committed Apr 25, 2024
1 parent aaaed2b commit f2a7c39
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,18 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
extra-packages: |
any::covr
any::devtools
needs: coverage

- name: Test coverage
run: |
covr::codecov(
coverage = devtools::test_coverage(show_report = FALSE),
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
shell: Rscript {0}

Expand Down

0 comments on commit f2a7c39

Please sign in to comment.