From 9159534896c69fc0a656f44010630e4f9de69eef Mon Sep 17 00:00:00 2001 From: Emanuele Bezzi Date: Tue, 14 May 2024 09:20:16 -0700 Subject: [PATCH 1/2] Allow R acceptance tests to run from a branch --- .github/workflows/full-unittests.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/full-unittests.yml b/.github/workflows/full-unittests.yml index 87dc388a3..7329addb9 100644 --- a/.github/workflows/full-unittests.yml +++ b/.github/workflows/full-unittests.yml @@ -36,6 +36,12 @@ on: required: false default: "" type: string + tiledbsoma_r_branch: + # e.g. + description: "Install tiledbsoma from a specific branch" + required: false + default: "" + type: string jobs: py_unit_tests: @@ -110,6 +116,13 @@ jobs: extra-packages: any::rcmdcheck, any::remotes cache: true + - name: install tiledbsoma version override + if: github.event_name == 'workflow_dispatch' && github.event.inputs.tiledbsoma_r_branch != '' + run: | + Rscript -e 'remove.packages(c("tiledb", "tiledbsoma"))' + Rscript -e 'install.packages("remotes")' + Rscript -e 'remotes::install_github("https://github.com/single-cell-data/TileDB-SOMA@${{ github.event.inputs.tiledbsoma_r_branch }}", subdir = "apis/r")' + - name: testthat run: | Rscript -e 'remotes::install_local("./api/r/cellxgene.census")' From 7aeda51297f033c9879a823890b15dba86cce7be Mon Sep 17 00:00:00 2001 From: Emanuele Bezzi Date: Fri, 24 May 2024 15:18:51 -0700 Subject: [PATCH 2/2] Fix description --- .github/workflows/full-unittests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/full-unittests.yml b/.github/workflows/full-unittests.yml index 7329addb9..08dc743ef 100644 --- a/.github/workflows/full-unittests.yml +++ b/.github/workflows/full-unittests.yml @@ -38,7 +38,7 @@ on: type: string tiledbsoma_r_branch: # e.g. - description: "Install tiledbsoma from a specific branch" + description: "Install r-tiledbsoma from a specific branch" required: false default: "" type: string