Skip to content

Commit 1373c3d

Browse files
committed
Fix CI
1 parent 463a65d commit 1373c3d

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ jobs:
5454
- uses: julia-actions/setup-julia@v1
5555
with:
5656
version: ${{ matrix.julia }}
57+
env:
58+
JULIA_PKG_USE_CLI_GIT: true
59+
shell: pwsh
60+
5761

5862
- name: Cache R & Julia packages
5963
uses: actions/cache@v4
Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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+
34
on:
45
push:
56
branches: [main, master]
@@ -11,11 +12,14 @@ name: test-coverage
1112
jobs:
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

Comments
 (0)