diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index c40b6a1..0e5327a 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -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} \ No newline at end of file + - name: Build and check deepforester + uses: r-lib/actions/check-r-package@v2