Skip to content

Commit

Permalink
Use r-lib actions for dependencies, install, and check
Browse files Browse the repository at this point in the history
This tests the current version of the package instead of the release and simplifies maintenance.
  • Loading branch information
ethanwhite committed Jul 13, 2024
1 parent a421062 commit fb3746f
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,14 @@ jobs:
- 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}
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
- 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}
- name: Build and check deepforester
uses: r-lib/actions/check-r-package@v2

0 comments on commit fb3746f

Please sign in to comment.