-
Notifications
You must be signed in to change notification settings - Fork 31
63 lines (50 loc) · 1.56 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
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
workflow_dispatch:
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: windows-latest, r: 'release'}
- {os: macOS-latest, r: 'release', exepath: '/Users/runner/Library/Application Support/org.R-project.R/R/whitebox/WBT/whitebox_tools'}
- {os: ubuntu-latest, r: 'devel', exepath: "/home/runner/.local/share/R/whitebox/WBT/whitebox_tools"}
- {os: ubuntu-latest, r: '3.6'}
env:
R_WHITEBOX_EXE_PATH: ${{ matrix.config.exepath }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
- uses: r-lib/actions/setup-pandoc@v2
- name: Install system dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install pkg-config
brew install gdal
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, any::covr, any::remotes, local::.
needs: check
- name: Install WhiteboxTools
run: |
install.packages("whitebox")
library(whitebox)
install_whitebox()
shell: Rscript {0}
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true