Bioconductor

pkg <- read.dcf("../DESCRIPTION", fields = "Package")[1]
library(pkg, character.only = TRUE)
library(`r pkg`)

Branch-specific workflows

It may be desirable to set up multiple workflow files within the same repository. A common use case for this is for Bioconductor packages, which rely on version-controlled release schedules.

Because of the release schedule, you may want to have different virtual machine (VM) setups for each version of your package (which are stored on different branches of the same GitHub repository).

devel branch

Only use the devel version of Bioc when launching GitHub Actions from the devel branch.

v <- "devel"
f1 <- use_workflow(name = paste("rworkflows",v,sep="."), 
                   branches = v, 
                   runners = construct_runners(bioc = v), 
                   preview = TRUE,
                   force_new = TRUE,
                   save_dir = tempdir() # For demo only, use default in practice
                   ) 

RELEASE_3_17 branch

Only use the 3.17 release version of Bioc when launching GitHub Actions from the RELEASE_3_17 branch.

v <- "RELEASE_3_17"
f2 <- use_workflow(name = paste("rworkflows",v,sep="."), 
                   branches = v, 
                   runners = construct_runners(bioc = v), 
                   preview = TRUE,
                   force_new = TRUE,
                   save_dir = tempdir() # For demo only, use default in practice
                   ) 

RELEASE_* branches

Only use the latest release version of Bioc when launching GitHub Actions from any RELEASE_* branch.

v <- "RELEASE_*"
f3 <- use_workflow(name = paste("rworkflows",v,sep="."), 
                   branches = v, 
                   runners = construct_runners(bioc = v), 
                   preview = TRUE,
                   force_new = TRUE,
                   save_dir = tempdir() # For demo only, use default in practice
                   ) 

Session Info

utils::sessionInfo()




Try the rworkflows package in your browser

Any scripts or data that you put into this service are public.

rworkflows documentation built on Nov. 2, 2023, 5:21 p.m.