-
Notifications
You must be signed in to change notification settings - Fork 27
53 lines (46 loc) · 1.43 KB
/
r_evalcast_ci.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
44
45
46
47
48
49
50
51
52
53
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: R_evalcast
on:
push:
branches: [ main, evalcast ]
pull_request:
branches: [ main, evalcast ]
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
working-directory: R-packages/evalcast/
strategy:
matrix:
r-version: [4.1]
steps:
- uses: actions/checkout@v3
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
r-version: ${{ matrix.r-version }}
- name: Install and cache dependencies
uses: r-lib/actions/setup-r-dependencies@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
extra-packages: any::rcmdcheck
needs: check
working-directory: R-packages/evalcast/
upgrade: 'TRUE'
- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran", "--ignore-vignettes")'
build-args: 'c("--no-build-vignettes")'
error-on: '"error"'
working-directory: R-packages/evalcast/