GHA: Add labels #120
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
on: [push, pull_request] | |
name: doFuture_tests_extra | |
jobs: | |
R-CMD-check: | |
if: "! contains(github.event.head_commit.message, '[ci skip]')" | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
name: ${{ matrix.config.r }} (${{ matrix.config.strategies }}) ${{ matrix.config.label }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { r: "release", strategies: sequential } | |
- { r: "release", strategies: multicore } | |
- { r: "release", strategies: multisession } | |
- { r: "release", strategies: "future.callr::callr" } | |
- { r: "release", strategies: "future.batchtools::batchtools_local" } | |
- { r: "release", strategies: sequential, future_version: develop, label: 'w/ future-develop' } | |
- { r: "release", strategies: sequential, future_version: feature/evalFuture-3, label: 'w/ future-feature/evalFuture-3' } | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
## R CMD check | |
_R_CHECK_MATRIX_DATA_: true | |
_R_CHECK_CRAN_INCOMING_: false | |
## Specific to futures | |
R_FUTURE_RNG_ONMISUSE: warning | |
R_FUTURE_VERSION: ${{ matrix.config.future_version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: | | |
any::rcmdcheck | |
any::remotes | |
any::sessioninfo | |
any::covr | |
needs: check | |
- name: Install dependencies | |
run: | | |
remotes::install_deps(dependencies = TRUE) | |
install.packages(".", repos=NULL, type="source") | |
shell: Rscript {0} | |
- name: Session info | |
run: | | |
options(width = 100) | |
pkgs <- installed.packages()[, "Package"] | |
sessioninfo::session_info(pkgs, include_base = TRUE) | |
shell: Rscript {0} | |
- name: Install dependencies | |
run: | | |
install.packages(c("rcmdcheck", "BiocManager")) | |
## We have to manually install dependencies on Bioconductor | |
BiocManager::install("BiocParallel") | |
## Dependencies of dependencies that are on Bioconductor | |
BiocManager::install(c("Biobase")) | |
remotes::install_deps(dependencies = TRUE) | |
install.packages(".", repos=NULL, type="source") ## needed by parallel workers | |
remotes::install_github("HenrikBengtsson/doFuture.tests.extra", dependencies=TRUE) | |
shell: Rscript {0} | |
- name: Test with specific future version? | |
run: | | |
future_version <- Sys.getenv("R_FUTURE_VERSION") | |
if (nzchar(future_version)) { | |
install.packages("remotes") | |
remotes::install_github("futureverse/future", ref=future_version) | |
} | |
shell: Rscript {0} | |
- name: Session info | |
run: | | |
options(width = 100) | |
pkgs <- installed.packages()[, "Package"] | |
sessioninfo::session_info(pkgs, include_base = TRUE) | |
shell: Rscript {0} | |
- name: Check | |
run: | | |
git clone --depth 1 https://github.com/HenrikBengtsson/doFuture.tests.extra.git | |
R CMD build --no-build-vignettes --no-manual doFuture.tests.extra | |
R CMD check --no-codoc --no-examples --no-manual --ignore-vignettes --as-cran doFuture.tests.extra_*.tar.gz | |
- name: Upload check results | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ runner.os }}-r${{ matrix.config.r }}-doFuture.tests.extra-results | |
path: check |