-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (54 loc) · 1.58 KB
/
R-CMD-check.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
62
63
64
65
66
on:
push:
branches:
- master
- devel
pull_request:
branches:
- master
- devel
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: 'release'}
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup R
uses: r-lib/actions/setup-r@v2-branch
with:
r-version: ${{ matrix.config.r }}
- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v2-branch
- name: Install tinyTeX
uses: r-lib/actions/setup-tinytex@v2-branch
- name: Install system dependencies
if: runner.os == 'Linux'
run: |
sudo apt install -y curl libcurl4-doc libcurl4-openssl-dev
- name: Install package dependencies
run: |
install.packages(c("remotes", "rcmdcheck", "covr", "sessioninfo"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check package
run: |
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}
- name: Upload code coverage
if: runner.os == 'Linux'
run: |
covr::codecov()
shell: Rscript {0}