generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (33 loc) · 1002 Bytes
/
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
name: R CMD check project packages
on:
pull_request:
push:
branches: [main, prod]
jobs:
check-package:
strategy:
matrix:
r-version: ["4.1.0", "release"]
os: [windows-latest, ubuntu-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{matrix.r-version}}
use-public-rspm: true
extra-repositories: "https://mc-stan.org/r-packages/"
- name: "Set up dependencies for wwinference"
uses: r-lib/actions/setup-r-dependencies@v2
with:
needs: check
- name: "Install cmdstan via cmdstanr"
uses: epinowcast/actions/install-cmdstan@v1
with:
cmdstan-version: "latest"
num-cores: 2
- name: "Check wwinference package"
uses: r-lib/actions/check-r-package@v2
with:
build_args: 'c("--no-manual", "--no-build-vignettes")'
args: 'c("--no-manual", "--as-cran", "--ignore-vignettes")'