Skip to content

Commit 8aefa1e

Browse files
Revert "drop all but benchmarks runs"
This reverts commit ba69805.
1 parent aa99a4c commit 8aefa1e

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
8+
9+
name: R-CMD-check
10+
11+
jobs:
12+
R-CMD-check:
13+
runs-on: ${{ matrix.config.os }}
14+
15+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
config:
21+
- {os: macOS-latest, r: 'devel'}
22+
- {os: macOS-latest, r: 'release'}
23+
- {os: windows-latest, r: 'release'}
24+
- {os: windows-latest, r: '3.6'}
25+
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
26+
- {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
27+
- {os: ubuntu-16.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
28+
- {os: ubuntu-16.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
29+
- {os: ubuntu-16.04, r: '3.3', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
30+
31+
env:
32+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
33+
RSPM: ${{ matrix.config.rspm }}
34+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
35+
_R_CHECK_FORCE_SUGGESTS_: false
36+
steps:
37+
- uses: actions/checkout@v2
38+
39+
- uses: r-lib/actions/setup-r@master
40+
with:
41+
r-version: ${{ matrix.config.r }}
42+
43+
- uses: r-lib/actions/setup-pandoc@master
44+
45+
- name: Query dependencies
46+
run: |
47+
install.packages('remotes')
48+
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
49+
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
50+
shell: Rscript {0}
51+
52+
- name: Cache R packages
53+
if: runner.os != 'Windows'
54+
uses: actions/cache@v1
55+
with:
56+
path: ${{ env.R_LIBS_USER }}
57+
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
58+
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
59+
60+
- name: Install system dependencies
61+
if: runner.os == 'Linux'
62+
env:
63+
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
64+
run: |
65+
Rscript -e "remotes::install_github('r-hub/sysreqs')"
66+
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
67+
sudo -s eval "$sysreqs"
68+
69+
- name: Install dependencies
70+
run: |
71+
remotes::install_deps(dependencies = TRUE)
72+
remotes::install_cran("rcmdcheck")
73+
shell: Rscript {0}
74+
75+
- name: Session info
76+
run: |
77+
options(width = 100)
78+
pkgs <- installed.packages()[, "Package"]
79+
sessioninfo::session_info(pkgs, include_base = TRUE)
80+
shell: Rscript {0}
81+
82+
- name: Check
83+
env:
84+
_R_CHECK_CRAN_INCOMING_: false
85+
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
86+
shell: Rscript {0}
87+
88+
- name: Show testthat output
89+
if: always()
90+
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
91+
shell: bash
92+
93+
- name: Upload check results
94+
if: failure()
95+
uses: actions/upload-artifact@master
96+
with:
97+
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
98+
path: check

0 commit comments

Comments
 (0)