updating CI R-CMD-check #730
Workflow file for this run
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
# 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] | |
pull_request: | |
branches: [main, master] | |
schedule: | |
- cron: '1 23 * * Sun' | |
name: R-CMD-check.yaml | |
defaults: | |
run: | |
shell: Rscript {0} | |
permissions: read-all | |
jobs: | |
R-CMD-check: | |
runs-on: ${{ matrix.config.os }} | |
timeout-minutes: 60 | |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) (${{ matrix.config.tf }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: macos-latest, r: 'release', tf: 'default'} | |
- {os: windows-latest, r: 'release', tf: 'default'} | |
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release', tf: 'default'} | |
- {os: ubuntu-latest, r: 'release', tf: 'default'} | |
- {os: ubuntu-latest, r: 'oldrel-1', tf: 'default'} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
Ncpus: '2L' | |
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 | |
- name: Install system dependencies | |
if: runner.os == 'Linux' | |
shell: bash | |
run: | | |
. /etc/os-release | |
while read -r cmd | |
do | |
echo "$cmd" | |
sudo $cmd | |
done < <(Rscript -e "writeLines(remotes::system_requirements('$ID-$VERSION_ID'))") | |
- name: Install remotes | |
if: steps.r-package-cache.outputs.cache-hit != 'true' | |
run: install.packages("remotes") | |
- name: Install package + deps | |
run: remotes::install_local(dependencies = TRUE, force = TRUE) | |
- name: Install greta deps | |
run: | | |
library(greta) | |
greta::install_greta_deps(timeout = 50) | |
- name: Situation Report on greta install | |
run: greta::greta_sitrep() | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
upload-snapshots: true | |
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' | |
- name: Show testthat output | |
if: always() | |
shell: bash | |
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true | |
# - name: Check on single core machine | |
# if: runner.os != 'Windows' | |
# env: | |
# R_PARALLELLY_AVAILABLE_CORES: 1 | |
# run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran", "--no-multiarch")) |