-
Notifications
You must be signed in to change notification settings - Fork 29
42 lines (39 loc) · 1.15 KB
/
test.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
name: test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}-latest
name: R ${{ matrix.r }} on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
r: ['4.1', '4.2']
steps:
- uses: actions/checkout@v2
- name: Set up R ${{ matrix.r }}
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r }}
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: sudo apt install libcurl4-openssl-dev libgit2-dev
- name: Install MacOs dependencies
if: runner.os == 'macOS'
run: brew install --cask xquartz
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Prepare tests
run: ./scripts/prepare_for_tests.sh
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}
- name: Report coverage
run: Rscript -e 'covr::codecov()'