-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (50 loc) · 1.53 KB
/
docker-renv.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:
- main
- master
- dev
- test-docker-ci
pull_request:
branches:
- main
- master
- dev
name: R-CMD-check-docker-renv
jobs:
R-CMD-check-docker-renv:
runs-on: ubuntu-latest
container: rocker/geospatial:4.3.0
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RENV_PATHS_ROOT: ~/.local/share/renv
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.local/share/renv
key: ubuntu-latest-renv-${{ hashFiles('**/renv.lock') }}
restore-keys: |
ubuntu-latest-renv-
- name: Install system dependencies Linux
run: sudo apt-get update -qq && apt install -y libharfbuzz-dev libfribidi-dev
- name: Install dependencies
run: |
source("renv/activate.R")
renv::restore()
renv::install("remotes")
remotes::install_local(upgrade = "never")
remotes::install_cran("rcmdcheck", upgrade = "never")
shell: Rscript {0}
- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
shell: Rscript {0}
- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
with:
name: ubuntu-r-results
path: check