-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (40 loc) · 1.13 KB
/
r.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
name: Build umx for R
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
r-version: ['4.2', '4.4.1']
steps:
- uses: actions/cache@v3
- uses: actions/checkout@v4
with:
path: ~/.R/library
key: ${{ runner.os }}-r-${{ matrix.r-version }}-${{ hashFiles('**/DESCRIPTION') }}
restore-keys: |
${{ runner.os }}-r-${{ matrix.r-version }}-
${{ runner.os }}-r-
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck", "covr"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check package
run: |
rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
devtools::check()
shell: Rscript {0}
- name: Code Coverage
run: covr::codecov()
shell: Rscript {0}