-
Notifications
You must be signed in to change notification settings - Fork 16
36 lines (36 loc) · 1.1 KB
/
r_cmd_check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: R-CMD-check
on: pull_request
jobs:
R-CMD-check:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-pandoc@v2
- name: Cache R packages
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: r-${{ hashFiles('DESCRIPTION') }}
- name: Install dependencies
run: |
install.packages(c("devtools"))
devtools::install_github("epiforecasts/[email protected]")
devtools::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check
run: |
devtools::check(args = c("--no-tests", "--no-manual", "--no-vignettes"),error_on = "error")
shell: Rscript {0}
- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check