-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[r] add r-dependency-check.yml nightly test of current release package (
#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
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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