Skip to content

Commit 2c792b1

Browse files
committed
Update all github workflows for #131
1 parent efa9477 commit 2c792b1

File tree

3 files changed

+23
-12
lines changed

3 files changed

+23
-12
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
on:
44
schedule:
55
- cron: "20 3 * * *" # Run every morning at 3:20am UTC
6-
# - cron: "7 1 * * *" # Run every morning at 1:07am UTC (~8pm central)
76

87
name: R-CMD-check-daily
98

@@ -13,9 +12,11 @@ jobs:
1312
env:
1413
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1514
steps:
16-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1716
- uses: r-lib/actions/setup-r@v2
1817
- uses: r-lib/actions/setup-r-dependencies@v2
18+
with:
19+
cache: "always"
1920
- uses: r-lib/actions/setup-pandoc@v2
2021

2122
- name: Query dependencies
@@ -55,6 +56,13 @@ jobs:
5556
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
5657
shell: Rscript {0}
5758

59+
- name: Test live dataverse in vignettes
60+
run: |
61+
devtools::load_all()
62+
source("tests/B-search_ghaction.R")
63+
source("tests/C-download_ghaction.R")
64+
shell: Rscript {0}
65+
5866
- name: Test coverage
5967
run: covr::codecov()
6068
shell: Rscript {0}

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ on:
44
push:
55
branches:
66
- dev
7-
# - main
8-
# - master
9-
# pull_request:
10-
# branches:
11-
# - main
12-
# - master
7+
pull_request:
8+
branches:
9+
- main
1310

1411
name: R-CMD-check-dev
1512

@@ -45,7 +42,6 @@ jobs:
4542
devtools::load_all()
4643
source("tests/B-search_ghaction.R")
4744
source("tests/C-download_ghaction.R")
48-
TESTERROR
4945
shell: Rscript {0}
5046

5147
- name: Test coverage

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ on:
88
push:
99
branches:
1010
- main
11-
- master
1211
# - dev
1312

1413
pull_request:
1514
branches:
1615
- main
17-
- master
1816

1917
name: R-CMD-check-thorough
2018

@@ -43,7 +41,7 @@ jobs:
4341
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4442

4543
steps:
46-
- uses: actions/checkout@v3
44+
- uses: actions/checkout@v4
4745

4846
- uses: r-lib/actions/setup-r@v2
4947
id: install-r
@@ -52,6 +50,8 @@ jobs:
5250
http-user-agent: ${{ matrix.config.http-user-agent }}
5351

5452
- uses: r-lib/actions/setup-r-dependencies@v2
53+
with:
54+
cache: "always"
5555
- uses: r-lib/actions/setup-pandoc@v2
5656

5757
- name: Restore R package cache
@@ -91,6 +91,13 @@ jobs:
9191
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
9292
shell: Rscript {0}
9393

94+
- name: Test live dataverse in vignettes
95+
run: |
96+
devtools::load_all()
97+
source("tests/B-search_ghaction.R")
98+
source("tests/C-download_ghaction.R")
99+
shell: Rscript {0}
100+
94101
- name: Show testthat output
95102
if: always()
96103
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true

0 commit comments

Comments
 (0)