Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 24 additions & 56 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,62 +1,30 @@
## Thin caller -- the matrix, system dependencies, caching, Drive staging
## and the check itself all live in PredictiveEcology/actions. This file only
## says which package to check and what it needs on top of the org defaults.
##
## Pinned @main deliberately: tags freeze and rot (v0.1/v0.2 kept the
## ubuntugis PPA for months after the workflows rejected it). The actions repo
## gates merges with its own self-test CI.

name: R-CMD-check

on:
push:
branches:
- main
- master
- development
- LandWeb
branches: [main, master, development, LandWeb]
pull_request:
branches:
- main
- master
- development

name: R-CMD-check
branches: [main, master, development, LandWeb]

jobs:
R-CMD-check:
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-1'}
- {os: windows-latest, nosuggests: false, r: 'oldrel-2'}
- {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-1'}
- {os: ubuntu-latest, nosuggests: false, r: 'oldrel-2'}

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/install-spatial-deps@v0.2

- uses: r-lib/actions/setup-r@v2
with:
Ncpus: 2
r-version: ${{ matrix.config.r }}
use-public-rspm: false

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::rcmdcheck

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
uses: PredictiveEcology/actions/.github/workflows/R-CMD-check.yaml@main
with:
## Legs beyond the org default 8, pinned to exact R versions rather
## than oldrel-N. On ubuntu-latest the oldrel ladder is not monotone --
## oldrel-4 and oldrel-5 both resolve to 4.1.3 and R 4.2 is unreachable
## -- and it shifts every time R releases. 4.3 is this package's
## declared floor (DESCRIPTION: R >= 4.3), so it is the version the
## matrix should actually prove.
extra-config: |
[{"config": {"os": "ubuntu-latest", "nosuggests": false, "r": "4.4"}},
{"config": {"os": "windows-latest", "nosuggests": false, "r": "4.4"}},
{"config": {"os": "ubuntu-latest", "nosuggests": false, "r": "4.3"}}]
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: r-lib/actions/setup-pandoc@v2

- uses: PredictiveEcology/actions/install-spatial-deps@v0.2
- uses: PredictiveEcology/actions/install-spatial-deps@main

- uses: r-lib/actions/setup-r@v2
with:
Expand Down
Loading