Skip to content

Commit c7fda61

Browse files
committed
GHA: use uncovr
1 parent dd68caa commit c7fda61

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -40,37 +40,10 @@ jobs:
4040

4141
- uses: r-lib/actions/setup-r-dependencies@v2
4242
with:
43-
extra-packages: any::covr, any::xml2
43+
extra-packages: gaborcsardi/uncovr
4444
needs: coverage
4545

4646
- name: Test coverage
4747
run: |
48-
cov <- covr::package_coverage(
49-
quiet = FALSE,
50-
clean = FALSE,
51-
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
52-
)
53-
covr::to_cobertura(cov)
54-
shell: Rscript {0}
55-
56-
- uses: codecov/codecov-action@v4
57-
with:
58-
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
59-
file: ./cobertura.xml
60-
plugin: noop
61-
disable_search: true
62-
token: ${{ secrets.CODECOV_TOKEN }}
63-
64-
- name: Show testthat output
65-
if: always()
66-
run: |
67-
## --------------------------------------------------------------------
68-
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
69-
shell: bash
70-
71-
- name: Upload test results
72-
if: failure()
73-
uses: actions/upload-artifact@v4
74-
with:
75-
name: coverage-test-failures
76-
path: ${{ runner.temp }}/package
48+
uncovr::test()
49+
uncovr::codecov()

0 commit comments

Comments
 (0)