Skip to content

GHA: win force DiagrammeR install via workflow #123

GHA: win force DiagrammeR install via workflow

GHA: win force DiagrammeR install via workflow #123

on:
push:
branches:
- master
- development
pull_request:
branches:
- master
- development
name: tutorial-check
jobs:
tutorial-check:
if: |
!contains(github.event.commits[0].message, '[skip-tutocheck]')
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, nosuggests: false, r: 'release'}
- {os: windows-latest, nosuggests: false, r: 'release'}
- {os: ubuntu-20.04, nosuggests: false, r: 'release'}
env:
_R_CHECK_DEPENDS_ONLY_: ${{ matrix.config.nosuggests }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
SPADES_USE_REQUIRE: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "oracle"
java-version: 17
- uses: r-lib/actions/setup-pandoc@v2
- uses: PredictiveEcology/actions/install-spatial-deps@main
- uses: r-lib/actions/setup-r@v2
with:
Ncpus: 2
r-version: ${{ matrix.config.r }}
use-public-rspm: false
extra-repositories: 'https://cran-archive.r-project.org/'
- name: Install package dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache: "always"
cache-version: 1
packages: |
any::rJava
any::withr
any::SpaDES.tools
- name: Run tutorials - Part 1
run: |
source("test/Part1_Rscript_test.R", echo = TRUE)
shell: Rscript {0}
- name: Run tutorials - Part 2
run: |
source("test/Part2_Rscript_test.R", echo = TRUE)
shell: Rscript {0}