Skip to content

Commit

Permalink
[r] add r-dependency-check.yml nightly test of current release package (
Browse files Browse the repository at this point in the history
#769)

#751. Following #763, add an analogous nightly workflow for R to install the current release version of `cellxgene.census` then run the unit tests, to verify compatibility with the most up-to-date dependency versions (without any dependency caching).
  • Loading branch information
mlin authored Nov 8, 2023
1 parent 0c732c5 commit 2f96365
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/r-dependency-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: R dependency checks

# This workflow is intended to check that the latest release of the cellxgene.census R package
# continues to function correctly using the latest upstream dependencies.

on:
schedule:
- cron: "30 1 * * *"
workflow_dispatch: # used for debugging or manual validation

jobs:
r-dependency-check:
name: r-dependency-check

strategy:
matrix:
os: [ubuntu-22.04, macos-latest]

runs-on: ${{matrix.os}}

steps:
- name: install OS dependencies
if: matrix.os == 'ubuntu-22.04'
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev
- uses: r-lib/actions/setup-r@v2
- name: install cellxgene.census and dependencies
# This should follow our user-facing instructions to install cellxgene.census.
run: |
Rscript -e 'install.packages(c("cellxgene.census", "Seurat", "BiocManager", "testthat"), repos=c("https://chanzuckerberg.r-universe.dev", "https://cloud.r-project.org"), type="source")'
Rscript -e 'BiocManager::install("SingleCellExperiment")'
- name: run unit tests
# [re-]fetch the cellxgene.census source package which includes the unit test code to run
run: |
set -ex
Rscript -e 'download.packages("cellxgene.census", destdir=".", repos="https://chanzuckerberg.r-universe.dev", type="source")'
tar zxf cellxgene.census_*.tar.gz
cd cellxgene.census/tests
Rscript testthat.R
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![codecov](https://codecov.io/gh/chanzuckerberg/cellxgene-census/branch/main/graph/badge.svg?token=byX1pyDlc9)](https://codecov.io/gh/chanzuckerberg/cellxgene-census)
[![Python dependency checks](https://github.com/chanzuckerberg/cellxgene-census/actions/workflows/py-dependency-check.yml/badge.svg)](https://github.com/chanzuckerberg/cellxgene-census/actions/workflows/py-dependency-check.yml)
[![R dependency checks](https://github.com/chanzuckerberg/cellxgene-census/actions/workflows/r-dependency-check.yml/badge.svg)](https://github.com/chanzuckerberg/cellxgene-census/actions/workflows/r-dependency-check.yml)
[![LTS compat checks](https://github.com/chanzuckerberg/cellxgene-census/actions/workflows/lts-compat-check.yml/badge.svg)](https://github.com/chanzuckerberg/cellxgene-census/actions/workflows/lts-compat-check.yml)

# CZ CELLxGENE Discover Census
Expand Down

0 comments on commit 2f96365

Please sign in to comment.