Skip to content

Additional facet.args for prefixing, etc. #1456

Additional facet.args for prefixing, etc.

Additional facet.args for prefixing, etc. #1456

Workflow file for this run

# Workflow derived from https://eddelbuettel.github.io/r-ci/
# Uses r-ci + r2u for fast (binary) package installation. Both jobs run in
# containers that already bundle r2u (rocker/r2u4ci for release -- the
# CI-flavoured image recommended by r-ci, with curl etc. preinstalled -- and
# rocker/drd for devel, built FROM rocker/r2u), so neither pays the bare-runner
# r2u mirror-setup cost (which can stall if the upstream r2u mirror is down).
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: ci
jobs:
ci:
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- { name: r-release, os: ubuntu-latest, container: rocker/r2u4ci }
- { name: r-devel, os: ubuntu-latest, container: rocker/drd }
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
NOT_CRAN: true
steps:
- uses: actions/checkout@v6
# r-ci's run.sh (hotfix a07614a, 2026-08-19) seds /etc/apt/apt-mirrors.txt
# unconditionally to drop the flaky azure mirror. That file only exists on
# GitHub-hosted runner images, not in containers, so the sed exits 2 and
# kills the step under `bash -e`. (r2u4ci escapes it via the /etc/r2u_ci
# stamp, which makes Bootstrap() skip BootstrapLinux entirely; drd has no
# such stamp.) An empty file is inert here -- containers never used the
# azure mirror. Drop once upstream guards the sed with `test -f`.
- name: Work around r-ci apt-mirrors.txt assumption
run: touch /etc/apt/apt-mirrors.txt
- name: Setup
uses: eddelbuettel/github-actions/r-ci@master
- name: Dependencies
run: ./run.sh install_all
- name: Test
run: ./run.sh run_tests
- name: Upload snapshot review (on failure)
if: failure()
uses: actions/upload-artifact@v4
with:
name: tinysnapshot-review-${{ matrix.name }}
path: |
*.Rcheck/**/_tinysnapshot_review/**
*.Rcheck/00check.log
if-no-files-found: ignore
retention-days: 7