-
Notifications
You must be signed in to change notification settings - Fork 45
61 lines (53 loc) · 1.26 KB
/
tests.yml
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
52
53
54
55
56
57
58
59
60
61
name: Unit and build tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
branches: [ master ]
jobs:
tests:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: ubuntu-latest, r: 'release'}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
use-public-rspm: true
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::devtools
any::knitr
any::formatR
any::testthat
any::haven
any::lfe
needs: |
devtools
knitr
rmarkdown
testthat
haven
lfe
- name: Setup pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Setup LaTeX
uses: r-lib/actions/setup-tinytex@v2
- name: Check build
env:
HONESTDID_RUN_TESTS: '1'
run: |
devtools::document()
devtools::check()
shell: Rscript {0}