Skip to content

Commit c0d6704

Browse files
committed
Update actions
1 parent 2eba7e8 commit c0d6704

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313

1414
name: R-CMD-check
1515

16+
permissions: read-all
17+
1618
jobs:
1719
R-CMD-check:
1820
runs-on: ${{ matrix.config.os }}
@@ -28,8 +30,6 @@ jobs:
2830

2931
- {os: windows-latest, r: 'release'}
3032
- {os: windows-latest, r: 'release', quarto: 'pre-release'}
31-
# Use 3.6 to trigger usage of RTools35
32-
- {os: windows-latest, r: '3.6'}
3333
# use 4.1 to check with rtools40's older compiler
3434
- {os: windows-latest, r: '4.1'}
3535

@@ -72,3 +72,4 @@ jobs:
7272
- uses: r-lib/actions/check-r-package@v2
7373
with:
7474
upload-snapshots: true
75+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.github/workflows/pkgdown.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111

1212
name: pkgdown
1313

14+
permissions: read-all
15+
1416
jobs:
1517
pkgdown:
1618
runs-on: ubuntu-latest

.github/workflows/pr-commands.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66

77
name: Commands
88

9+
permissions: read-all
10+
911
jobs:
1012
document:
1113
if: ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/document') }}

.github/workflows/test-coverage.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88

99
name: test-coverage
1010

11+
permissions: read-all
12+
1113
jobs:
1214
test-coverage:
1315
runs-on: ubuntu-latest
@@ -28,23 +30,32 @@ jobs:
2830

2931
- uses: r-lib/actions/setup-r-dependencies@v2
3032
with:
31-
extra-packages: any::covr
33+
extra-packages: any::covr, any::xml2
3234
needs: coverage
3335

3436
- name: Test coverage
3537
run: |
36-
covr::codecov(
38+
cov <- covr::package_coverage(
3739
quiet = FALSE,
3840
clean = FALSE,
3941
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
4042
)
43+
covr::to_cobertura(cov)
4144
shell: Rscript {0}
4245

46+
- uses: codecov/codecov-action@v4
47+
with:
48+
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
49+
file: ./cobertura.xml
50+
plugin: noop
51+
disable_search: true
52+
token: ${{ secrets.CODECOV_TOKEN }}
53+
4354
- name: Show testthat output
4455
if: always()
4556
run: |
4657
## --------------------------------------------------------------------
47-
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
58+
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
4859
shell: bash
4960

5061
- name: Upload test results

0 commit comments

Comments
 (0)