-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (50 loc) · 1.35 KB
/
test-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
54
55
56
57
58
59
60
on:
push:
branches:
- master
- development
pull_request:
branches:
- master
- development
name: test-coverage
jobs:
test-coverage:
if: "!contains(github.event.commits[0].message, '[skip-ci]')"
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
USING_COVR: true
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- name: Install macOS system dependencies
if: runner.os == 'macOS'
run: |
brew install pkg-config
brew install gdal
- uses: r-lib/actions/setup-r@v2
with:
extra-repositories: 'https://r-spatial.r-universe.dev/'
Ncpus: 2
use-public-rspm: false
- name: Install sf from r-universe
run: |
install.packages("sf")
shell: Rscript {0}
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::covr
any::sf
fastshp=?ignore
NLMR=?ignore
- name: Install additional package dependencies
run: |
pak::pkg_install("remotes")
pak::pkg_install("ropensci/NLMR")
remotes::install_github("s-u/fastshp")
shell: Rscript {0}
- name: Test coverage
run: covr::codecov()
shell: Rscript {0}