Skip to content

Submit 5.2.0 to CRAN #53

Submit 5.2.0 to CRAN

Submit 5.2.0 to CRAN #53

Workflow file for this run

name: Pre-Merge Checks
on:
# Trigger the workflow when a PR is opened/updated against the default or
# any stable release branch.
pull_request:
branches:
- main
- '*-stable'
# Trigger the workflow when commits are pushed to a stable release branch.
# Because they are protected branches this workflow is effectively triggered
# by three events:
# 1. When a stable release branch is initially created/pushed.
# 2. When a PR against the default or any stable release branch is opened/updated.
# 3. When a PR against the default or any stable release branch is merged.
push:
branches:
- main
- '*-stable'
# Allow the workflow to be triggered manually.
workflow_dispatch:
jobs:
check-package:
# Override the default job name to differentiate it from similar jobs in
# other workflows.
name: "check-package (r2u)"
# Use the `satijalab/seurat-ci` Docker image as the runner environment.
# This image is pre-configured with everything required for running
# integration checks, for more details, see
# https://hub.docker.com/repository/docker/satijalab/seurat-ci/general.
runs-on: ubuntu-latest
container:
image: satijalab/seurat-ci:latest
steps:
# Pull the latest changes from the repository down to the runner.
- name: Checkout
uses: actions/checkout@v4
# Install the package and all its dependencies using scripts from
# `littler`, see https://eddelbuettel.github.io/littler/ for details.
- name: Install Dependencies
run: installDeps.r -s
# Run CRAN checks, if any ERRORs or WARNINGs are raised the check fails.
- name: Run Checks
run: rcmdcheck::rcmdcheck(args = "--as-cran", error_on="warning")
shell: Rscript {0}