1- # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2- # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
1+ # Derived from https://github.com/r-lib/actions/tree/v2/examples
2+ # Need help debugging build failures? https://github.com/r-lib/actions#where-to-find-help
3+
34on :
45 push :
56 branches : [main, master]
@@ -11,11 +12,14 @@ name: test-coverage
1112jobs :
1213 test-coverage :
1314 runs-on : ubuntu-latest
15+
1416 env :
1517 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
18+ RSPM : https://packagemanager.posit.co/cran/latest
19+ NOT_CRAN : true
1620
1721 steps :
18- - uses : actions/checkout@v3
22+ - uses : actions/checkout@v4
1923
2024 - uses : r-lib/actions/setup-r@v2
2125 with :
@@ -24,28 +28,21 @@ jobs:
2428 - uses : r-lib/actions/setup-r-dependencies@v2
2529 with :
2630 extra-packages : any::covr
27- needs : coverage
2831
29-
30- - name : Test coverage
32+ - name : Run test coverage
3133 run : |
32- covr::codecov(
33- quiet = FALSE,
34- clean = FALSE,
35- install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
36- )
34+ covr::codecov()
3735 shell : Rscript {0}
3836
39- - name : Show testthat output
37+ - name : Show testthat logs
4038 if : always()
4139 run : |
42- ## --------------------------------------------------------------------
43- find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
40+ find . -name 'testthat.Rout*' -exec cat '{}' \; || true
4441 shell : bash
4542
46- - name : Upload test results
43+ - name : Upload test failure artifacts
4744 if : failure()
48- uses : actions/upload-artifact@v3
45+ uses : actions/upload-artifact@v4
4946 with :
5047 name : coverage-test-failures
51- path : ${{ runner.temp }}/package
48+ path : check/*.Rcheck/tests/testthat.Rout.fail
0 commit comments