Skip to content

Commit

Permalink
Merge pull request #223 from drieslab/dev2
Browse files Browse the repository at this point in the history
chore: GHA updates
  • Loading branch information
jiajic authored Aug 28, 2024
2 parents 7456cd1 + 9674e00 commit 7b9f80e
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 7 deletions.
51 changes: 49 additions & 2 deletions .github/workflows/covr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: code coverage

on:
push:
branches: [ "dev2 " ]
branches: [ "dev2" ]
schedule:
- cron: '16 20 * * 2'

Expand Down Expand Up @@ -37,19 +37,66 @@ jobs:
install-pandoc: false
extra-packages: |
github::drieslab/GiottoData
any::covr
any::rcmdcheck
any::testthat
any::rlang
any::R.utils
any::knitr
any::rmarkdown
any::qs
any::sp
any::stars
any::raster
any::sf
any::scattermore
any::exactextractr
any::RTriangle
any::geometry
any::covr
any::qs
any::future.apply
any::Biobase
any::chihaya
any::DelayedArray
any::DelayedMatrixStats
any::HDF5Array
any::plotly
any::rgl
any::rhdf5
any::S4Vectors
any::ScaledMatrix
any::XML
any::Seurat
any::SeuratObject
any::SingleCellExperiment
any::SpatialExperiment
any::STexampleData
any::SummarizedExperiment
needs: coverage

- uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: setup giotto_env
shell: Rscript {0}
run: |
if (!GiottoClass::checkGiottoEnvironment()) {
GiottoClass::installGiottoEnvironment()
}
reticulate::conda_install(
envname = 'giotto_env',
packages = 'scanpy',
pip = TRUE
)
path_to_python <- GiottoClass::set_giotto_python_path()
writeLines(sprintf("RETICULATE_PYTHON=%s", path_to_python),
Sys.getenv("GITHUB_ENV"))
- name: Generate coverage report
run: |
covr::codecov(
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- name: setup giotto_env
shell: Rscript {0}
run: |
if (!GiottoClass::checkGiottoEnvironment(envname = "giotto_env")) {
if (!GiottoClass::checkGiottoEnvironment()) {
GiottoClass::installGiottoEnvironment()
}
Expand Down
40 changes: 36 additions & 4 deletions .github/workflows/main_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: R-CMD-check

on:
pull_request:
types: closed
types: opened
branches: [ "main" ]

permissions:
Expand Down Expand Up @@ -64,9 +64,9 @@ jobs:
any::testthat
any::rlang
any::R.utils
any::remotes
any::knitr
any::rmarkdown
any::qs
any::sp
any::stars
any::raster
Expand All @@ -77,14 +77,46 @@ jobs:
any::geometry
any::qs
any::future.apply
any::Biobase
any::chihaya
any::DelayedArray
any::DelayedMatrixStats
any::HDF5Array
any::plotly
any::rgl
any::rhdf5
any::S4Vectors
any::ScaledMatrix
any::XML
any::Seurat
any::SeuratObject
any::SingleCellExperiment
any::SpatialExperiment
any::STexampleData
any::SummarizedExperiment
github::drieslab/GiottoData
- name: Test python env build
- uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: setup giotto_env
shell: Rscript {0}
run: |
if (!GiottoClass::checkGiottoEnvironment()) {
GiottoClass::installGiottoEnvironment()
}
shell: Rscript {0}
reticulate::conda_install(
envname = 'giotto_env',
packages = 'scanpy',
pip = TRUE
)
path_to_python <- GiottoClass::set_giotto_python_path()
writeLines(sprintf("RETICULATE_PYTHON=%s", path_to_python),
Sys.getenv("GITHUB_ENV"))
- name: Run R CMD check
uses: r-lib/actions/check-r-package@v2
Expand Down

0 comments on commit 7b9f80e

Please sign in to comment.