-
Notifications
You must be signed in to change notification settings - Fork 4
63 lines (51 loc) · 1.77 KB
/
tutorial-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
on:
push:
branches:
- master
- development
pull_request:
branches:
- master
- development
name: tutorial-check
jobs:
tutorial-check:
if: "!contains(github.event.commits[0].message, '[skip-ci]')"
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, nosuggests: false, r: 'release'}
- {os: windows-latest, nosuggests: false, r: 'devel'}
- {os: windows-latest, nosuggests: false, r: 'release'}
- {os: windows-latest, nosuggests: false, r: 'oldrel'}
- {os: windows-latest, nosuggests: false, r: '4.1'}
- {os: ubuntu-20.04, nosuggests: false, r: 'devel'}
- {os: ubuntu-20.04, nosuggests: false, r: 'release'}
- {os: ubuntu-20.04, nosuggests: true, r: 'release'}
- {os: ubuntu-20.04, nosuggests: false, r: 'oldrel'}
env:
_R_CHECK_DEPENDS_ONLY_: ${{ matrix.config.nosuggests }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
SPADES_USE_REQUIRE: false
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: PredictiveEcology/actions/install-spatial-deps@main
- uses: r-lib/actions/setup-r@v2
with:
Ncpus: 2
r-version: ${{ matrix.config.r }}
use-public-rspm: false
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Run tutorials - Part 1
run: |
source("Part1_DummyModel_test.R", echo = TRUE)
shell: Rscript {0}
- name: Run tutorials - Part 2
run: |
source("Part2_SDMs_test.R", echo = TRUE)
shell: Rscript {0}