Skip to content

Commit 8666889

Browse files
Undo 1c93485
Set back codecov coverage action.
1 parent 7d5d241 commit 8666889

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.github/workflows/test-coverage.yaml

+5-16
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88

99
name: test-coverage
1010

11-
permissions: read-all
12-
1311
jobs:
1412
test-coverage:
1513
runs-on: ubuntu-latest
@@ -25,37 +23,28 @@ jobs:
2523

2624
- uses: r-lib/actions/setup-r-dependencies@v2
2725
with:
28-
extra-packages: any::covr, any::xml2
26+
extra-packages: any::covr
2927
needs: coverage
3028

3129
- name: Test coverage
3230
run: |
33-
cov <- covr::package_coverage(
31+
covr::codecov(
3432
quiet = FALSE,
3533
clean = FALSE,
36-
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
34+
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
3735
)
38-
covr::to_cobertura(cov)
3936
shell: Rscript {0}
4037

41-
- uses: codecov/codecov-action@v4
42-
with:
43-
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
44-
file: ./cobertura.xml
45-
plugin: noop
46-
disable_search: true
47-
token: ${{ secrets.CODECOV_TOKEN }}
48-
4938
- name: Show testthat output
5039
if: always()
5140
run: |
5241
## --------------------------------------------------------------------
53-
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
42+
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
5443
shell: bash
5544

5645
- name: Upload test results
5746
if: failure()
58-
uses: actions/upload-artifact@v4
47+
uses: actions/upload-artifact@v3
5948
with:
6049
name: coverage-test-failures
6150
path: ${{ runner.temp }}/package

0 commit comments

Comments
 (0)