GHA try to deal with rgeos/rgdal for map pkg #720
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
- development | |
- LandWeb | |
pull_request: | |
branches: | |
- master | |
- development | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
if: "!contains(github.event.commits[0].message, '[skip-ci]')" | |
runs-on: ${{ matrix.config.os }} | |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) (nosuggests ${{ matrix.config.nosuggests }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: macOS-latest, nosuggests: false, r: 'release'} | |
- {os: windows-latest, nosuggests: false, r: 'devel'} | |
- {os: windows-latest, nosuggests: false, r: 'release'} | |
- {os: windows-latest, nosuggests: false, r: 'oldrel'} | |
- {os: ubuntu-latest, nosuggests: false, r: 'devel'} | |
- {os: ubuntu-latest, nosuggests: false, r: 'release'} | |
- {os: ubuntu-latest, nosuggests: true, r: 'release'} | |
- {os: ubuntu-latest, nosuggests: false, r: 'oldrel'} | |
env: | |
_R_CHECK_DEPENDS_ONLY_: ${{ matrix.config.nosuggests }} | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: PredictiveEcology/actions/[email protected] | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
extra-repositories: 'https://PredictiveEcology.r-universe.dev/' | |
Ncpus: 2 | |
r-version: ${{ matrix.config.r }} | |
use-public-rspm: false | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: | | |
any::rcmdcheck | |
any::sf | |
any::XML | |
BioSIM=?ignore | |
fastshp=?ignore | |
map=?ignore | |
NLMR=?ignore | |
rgdal=?ignore | |
rgeos=?ignore | |
PredictiveEcology/quickPlot@development | |
PredictiveEcology/reproducible@development | |
PredictiveEcology/Require@development | |
PredictiveEcology/SpaDES.core@development | |
PredictiveEcology/SpaDES.tools@development | |
- name: Install additional package dependencies | |
run: | | |
pak::pkg_install("remotes") | |
remotes::install_github("RNCan/BioSimClient_R") | |
remotes::install_github("s-u/fastshp") | |
remotes::install_github("ropensci/NLMR") | |
install.packages("rgdal", repos = "https://predictiveecology.r-universe.dev") | |
install.packages("rgeos", repos = "https://predictiveecology.r-universe.dev") | |
remotes::install_github("PredictiveEcology/map@development") | |
shell: Rscript {0} | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
upload-snapshots: true |