Skip to content

Commit 7828113

Browse files
Trying with different call to covr::package_coverage
1 parent f34df88 commit 7828113

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ jobs:
2828
needs: coverage
2929

3030
- name: Run tests and generate coverage
31-
run: |
32-
Rscript -e 'cov <- covr::package_coverage()'
33-
Rscript -e 'covr::codecov(coverage = cov)'
31+
cov <- covr::package_coverage(
32+
quiet = FALSE,
33+
clean = FALSE,
34+
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
35+
)
36+
print(cov)
37+
covr::to_cobertura(cov)
38+
shell: Rscript {0}
3439

3540
# Optional: Upload coverage artifact for GitHub inspection
3641
- name: Save coverage artifacts

0 commit comments

Comments
 (0)