-
Notifications
You must be signed in to change notification settings - Fork 4
83 lines (81 loc) Β· 2.88 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
name: R-full
jobs:
macOS:
runs-on: macOS-latest
strategy:
matrix:
r: ['release']
#r:['devel']
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.PAT_GITHUB }}
steps:
- uses: actions/checkout@v1
- uses: r-lib/actions/setup-r@master
with:
r-version: ${{ matrix.r }}
- uses: r-lib/actions/setup-pandoc@master
- uses: r-lib/actions/setup-tinytex@master
- name: Install dependencies
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.PAT_GITHUB }}
run: Rscript -e "install.packages(c('remotes', 'rcmdcheck'))" -e "options(timeout=600)" -e "remotes::install_deps(dependencies = TRUE)"
- name: Check
run: Rscript -e "rcmdcheck::rcmdcheck(error_on = 'error')"
- name: Test coverage
if: matrix.r == 'release'
run: |
Rscript -e 'remotes::install_github("r-lib/covr@gh-actions")'
Rscript -e 'covr::codecov()'
# linux:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# r: ['release']
# container: rstudio/r-base:${{ matrix.r }}-xenial
# env:
# CRAN: 'https://demo.rstudiopm.com/all/__linux__/xenial/latest'
# steps:
# - uses: actions/checkout@v1
# - uses: r-lib/actions/setup-r@master
# - uses: r-lib/actions/setup-pandoc@master
# - uses: r-lib/actions/setup-tinytex@master
# - name: Install dependencies
# run: |
# Rscript -e "install.packages('remotes')" -e "options(timeout=600)" -e "remotes::install_github('r-hub/sysreqs')"
# sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
# eval "$sysreqs"
# Rscript -e "remotes::install_deps(dependencies = TRUE)"
# env:
# RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
# - name: Check
# run: Rscript -e "install.packages('rcmdcheck')" -e "rcmdcheck::rcmdcheck(error_on = 'error')"
windows:
runs-on: windows-latest
strategy:
matrix:
r: ['release']
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.PAT_GITHUB }}
steps:
- uses: actions/checkout@v1
- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-pandoc@master
- uses: r-lib/actions/setup-tinytex@master
- name: Install dependencies
run: Rscript -e "install.packages(c('remotes', 'rcmdcheck'))" -e "options(timeout=600)" -e "remotes::install_deps(dependencies = TRUE)"
- name: Check
run: Rscript -e "rcmdcheck::rcmdcheck(error_on = 'error')"