-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (42 loc) · 1.19 KB
/
docker-renv-coverage.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
on:
push:
branches:
- main
- master
- dev
- test-docker-ci
pull_request:
branches:
- main
- master
- dev
name: coverage-docker-renv
jobs:
coverage-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 libgit2-dev
- name: Install dependencies
run: |
source("renv/activate.R")
renv::restore()
renv::install("remotes")
renv::install("covr")
remotes::install_local(upgrade = "never")
shell: Rscript {0}
- name: Test coverage
run: covr::codecov()
shell: Rscript {0}