generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (48 loc) · 1.44 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: R CMD check project packages
on:
pull_request:
push:
branches: [main, prod]
jobs:
check-eval:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
use-public-rspm: true
extra-repositories: 'https://mc-stan.org/r-packages/'
- name: "Set up dependencies for wweval"
uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: wweval
needs: check
- name: "Install cmdstan via cmdstanr"
uses: ./.github/actions/install-cmdstan
- name: "Check wweval package"
uses: r-lib/actions/check-r-package@v2
with:
working-directory: wweval
check-ww:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
use-public-rspm: true
extra-repositories: 'https://mc-stan.org/r-packages/'
- name: "Set up dependencies for cfaforecastrenewalww"
uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: cfaforecastrenewalww
needs: check
- name: "Install cmdstan via cmdstanr"
uses: ./.github/actions/install-cmdstan
- name: "check cfaforecastrenewalww package"
uses: r-lib/actions/check-r-package@v2
with:
working-directory: cfaforecastrenewalww
error-on: '"error"'