-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.19 KB
/
test-coverage.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
on:
push:
branches:
- main
pull_request:
branches:
- main
name: test-coverage
jobs:
test-coverage:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- uses: r-lib/actions/setup-r@v2
with:
r-version: "release"
- uses: r-lib/actions/setup-pandoc@v2
- name: Install system dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install pkg-config
brew install gdal
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
- name: Install Python dependencies
run: |
reticulate::virtualenv_create("r-reticulate")
reticulate::virtualenv_install("r-reticulate", "rosetta-soil")
shell: Rscript {0}
- name: Test coverage
run: covr::codecov()
shell: Rscript {0}