-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (39 loc) · 1.2 KB
/
test-package.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
# R package release checking
on:
push:
branches:
- main
pull_request:
branches:
- main
name: R-CMD-check-release
jobs:
R-CMD-check:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
fail-fast: false
runs-on: ${{ matrix.os }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CRAN_REPO: https://packagemanager.rstudio.com/all/__linux__/focal/latest
steps:
- uses: actions/checkout@v4
- name: Setup R (Ubuntu)
if: matrix.os == 'ubuntu-latest'
uses: eddelbuettel/github-actions/r2u-setup@master
- name: Setup R (Other)
if: matrix.os != 'ubuntu-latest'
uses: r-lib/actions/setup-r@v2
- name: Install package dependencies
run: |
install.packages(c("remotes", "rcmdcheck", "reticulate"))
remotes::install_deps(dependencies = TRUE, repos = c("CRAN" = Sys.getenv("CRAN_REPO")))
shell: Rscript {0}
- name: Install DeepForest
run: |
reticulate::install_miniconda()
reticulate::py_install('DeepForest', pip=TRUE)
shell: Rscript {0}
- name: Build and check deepforester
uses: r-lib/actions/check-r-package@v2