Skip to content

Commit 8972bac

Browse files
committed
fix test-coverage
1 parent 70ee7a4 commit 8972bac

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
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+
34
on:
45
push:
56
branches: [main, master]
67
pull_request:
78
branches: [main, master]
89

9-
name: test-coverage
10-
1110
jobs:
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

0 commit comments

Comments
 (0)