-
Notifications
You must be signed in to change notification settings - Fork 27
50 lines (43 loc) · 1.36 KB
/
r_covidcast_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
# 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_covidcast
on:
push:
branches: [ main, r-pkg-devel ]
pull_request:
branches: [ main, r-pkg-devel ]
jobs:
build:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: R-packages/covidcast/
strategy:
matrix:
r-version: [3.6]
steps:
- uses: actions/checkout@v3
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
with:
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/covidcast/
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: '"warning"'
working-directory: R-packages/covidcast/