pass to
arg(s) instead of studyArea/rasterToMatch to prepInputs et al.
#78
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: | |
- main | |
- development | |
pull_request: | |
branches: | |
- main | |
- 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 }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: macOS-latest, r: 'release'} | |
- {os: windows-latest, r: 'devel'} | |
- {os: windows-latest, r: 'release'} | |
- {os: windows-latest, r: 'oldrel/1'} | |
- {os: windows-latest, r: 'oldrel/2'} | |
- {os: ubuntu-20.04, r: 'devel'} | |
- {os: ubuntu-20.04, r: 'release'} | |
- {os: ubuntu-20.04, r: 'oldrel/1'} | |
- {os: ubuntu-20.04, r: 'oldrel/2'} | |
env: | |
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/install-spatial-deps@main | |
- 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: | |
dependencies: '"all"' | |
extra-packages: | | |
any::rcmdcheck | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
upload-snapshots: true |