File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 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+ # .github/workflows/test-coverage.yml
2+ name : test-coverage
3+
34on :
45 push :
56 branches : [main, master]
67 pull_request :
78 branches : [main, master]
89
9- name : test-coverage
10-
1110jobs :
1211 test-coverage :
1312 runs-on : ubuntu-latest
1413 env :
1514 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
1615
1716 steps :
18- - uses : actions/checkout@v3
17+ - uses : actions/checkout@v4
1918
2019 - uses : r-lib/actions/setup-r@v2
2120 with :
@@ -25,26 +24,27 @@ jobs:
2524 with :
2625 extra-packages : any::covr
2726 needs : coverage
27+ # Optional: enable caching
28+ # cache-version: 1
2829
2930 - name : Test coverage
3031 run : |
3132 covr::codecov(
3233 quiet = FALSE,
3334 clean = FALSE,
34- install_path = file.path(normalizePath( Sys.getenv("RUNNER_TEMP"), winslash = "/ "), "package")
35+ install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
3536 )
3637 shell : Rscript {0}
3738
3839 - name : Show testthat output
3940 if : always()
4041 run : |
41- ## --------------------------------------------------------------------
42- find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
42+ find "${{ runner.temp }}/package" -name 'testthat.Rout*' -exec cat '{}' \; || true
4343 shell : bash
4444
4545 - name : Upload test results
4646 if : failure()
47- uses : actions/upload-artifact@v3
47+ uses : actions/upload-artifact@v4
4848 with :
4949 name : coverage-test-failures
5050 path : ${{ runner.temp }}/package
You can’t perform that action at this time.
0 commit comments