Skip to content

Commit 46221d8

Browse files
committed
update workflows
1 parent 90f36c2 commit 46221d8

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66
pull_request:
77
branches: [main, master]
88

9-
name: R-CMD-check
9+
name: R-CMD-check.yaml
10+
11+
permissions: read-all
1012

1113
jobs:
1214
R-CMD-check:
@@ -31,10 +33,8 @@ jobs:
3133
ZENODO_TOKEN: ${{ secrets.ZENODO_TOKEN }}
3234
ZENODO_SANDBOX_TOKEN: ${{ secrets.ZENODO_SANDBOX_TOKEN }}
3335

34-
35-
3636
steps:
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3838

3939
- uses: r-lib/actions/setup-pandoc@v2
4040

@@ -52,3 +52,4 @@ jobs:
5252
- uses: r-lib/actions/check-r-package@v2
5353
with:
5454
upload-snapshots: true
55+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.github/workflows/test-coverage.yaml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66
pull_request:
77
branches: [main, master]
88

9-
name: test-coverage
9+
name: test-coverage.yaml
10+
11+
permissions: read-all
1012

1113
jobs:
1214
test-coverage:
@@ -18,36 +20,47 @@ jobs:
1820
ZENODO_SANDBOX_TOKEN: ${{ secrets.ZENODO_SANDBOX_TOKEN }}
1921

2022
steps:
21-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2224

2325
- uses: r-lib/actions/setup-r@v2
2426
with:
2527
use-public-rspm: true
2628

2729
- uses: r-lib/actions/setup-r-dependencies@v2
2830
with:
29-
extra-packages: any::covr
31+
extra-packages: any::covr, any::xml2
3032
needs: coverage
3133

3234
- name: Test coverage
3335
run: |
34-
covr::codecov(
36+
cov <- covr::package_coverage(
3537
quiet = FALSE,
3638
clean = FALSE,
37-
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
39+
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
3840
)
41+
print(cov)
42+
covr::to_cobertura(cov)
3943
shell: Rscript {0}
4044

45+
- uses: codecov/codecov-action@v5
46+
with:
47+
# Fail if error if not on PR, or if on PR and token is given
48+
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
49+
files: ./cobertura.xml
50+
plugins: noop
51+
disable_search: true
52+
token: ${{ secrets.CODECOV_TOKEN }}
53+
4154
- name: Show testthat output
4255
if: always()
4356
run: |
4457
## --------------------------------------------------------------------
45-
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
58+
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
4659
shell: bash
4760

4861
- name: Upload test results
4962
if: failure()
50-
uses: actions/upload-artifact@v3
63+
uses: actions/upload-artifact@v4
5164
with:
5265
name: coverage-test-failures
5366
path: ${{ runner.temp }}/package

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: deposits
22
Title: A universal client for depositing and accessing research data
33
anywhere
4-
Version: 0.2.1.062
4+
Version: 0.2.1.063
55
Authors@R:
66
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0003-2172-5265"))

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"codeRepository": "https://github.com/ropenscilabs/deposits",
88
"issueTracker": "https://github.com/ropenscilabs/deposits/issues",
99
"license": "https://spdx.org/licenses/MIT",
10-
"version": "0.2.1.062",
10+
"version": "0.2.1.063",
1111
"programmingLanguage": {
1212
"@type": "ComputerLanguage",
1313
"name": "R",

0 commit comments

Comments
 (0)