Skip to content

Improve testing

Improve testing #18

Workflow file for this run

# R package release checking
on:
push:
branches:
- main
pull_request:
branches:
- main
name: R-CMD-check-release
jobs:
R-CMD-check:
continue-on-error: true
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CRAN_REPO: https://packagemanager.rstudio.com/all/__linux__/focal/latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- name: Install package dependencies
run: |
install.packages(c("remotes", "rcmdcheck", "reticulate"), repos = c("CRAN" = Sys.getenv("CRAN_REPO")))
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)
install.packages('deepforestr')
shell: Rscript {0}
- name: Check
run: |
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}