Skip to content

Update vignettes ++ (#421) #933

Update vignettes ++ (#421)

Update vignettes ++ (#421) #933

Workflow file for this run

# 01.09.23: Moved from ubuntu-latest to ubuntu-20.04 to avoid actions being cancelled
# This is potentially due to CPU quota being exceeded as suggested
# here: https://github.com/actions/runner-images/issues/6680 and
# here: https://github.com/actions/runner-images/discussions/7188)
# July 5th, 2022: This is a modifided version of the 'check-standard' version from
# https://github.com/r-lib/actions/tree/v2/examples#standard-ci-workflow
# The following is modified:
# 1. Runs on branches cranversion and devel as well
# 2. Runs on oldrel-2 as well
# 3. R CMD check is performed WITHOUT the default as-cran flag. This allows snapshots to run without setting
# as-cran=TRUE in every single call to expect_snapshot
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master, cranversion, devel, 'shapr-1.0.0']
pull_request:
branches: [main, master, cranversion, devel, 'shapr-1.0.0']
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
# Temporary disable all but ubuntu release to reduce compute while debugging
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-20.04, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-20.04, r: 'release'}
# Temporary disable the below check plattforms as they fail due to a change in how R reports error from R<4.3 to R>=4.3,
# which gives a different output in the snapshots produced by testthat>=3.2.0
# - {os: ubuntu-20.04, r: 'oldrel-1'}
# - {os: ubuntu-20.04, r: 'oldrel-2'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- name: Set the value
shell: bash # Default on non-Windows, but needs to be specfied for this to run on Windows
run: echo "TORCH_INSTALL=1" >> "$GITHUB_ENV"
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
# Try to do this with the env variable TORCH_INSTALL instead to hopefully get setup-r-dependencies to cache the installation
# - name: Install torch dependencies
# run: torch::install_torch()
# shell: Rscript {0}
- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual")' # I.e. exclude the as-cran comment here
upload-snapshots: true