-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Simplify version checking mechanism #9
Comments
Hm. I guess that I could make the template use conditional code. Like a |
Hi Leo, @lcolladotor |
I'm just going through that PR, it's really fancy!! Thanks Marcel!! |
Thank you Marcel for the great PR! After a bunch of tests at https://github.com/lcolladotor/testmatrix and a few commits on Note that I had to revert some of the code from your PR #11: the I also added arguments to I'll close this issue, but we might want to revise some details here and there. Anyway, this version works now ^^ I added you as a |
Thanks for looking it over Leo! @lcolladotor I agree with all the changes required to make it work on non-Linux platforms. I didn't have a chance to test it 😅 I don't think the Suppose I am using Bioconductor devel and I would like to add / update the GitHub Action for my repository. > BiocManager::version()
[1] '3.12'
# AND
> getRversion()
[1] '4.0.2' Note. My package checkout should always correspond to the branch that I am in: ~/bioc/biocthis (master) $ git branch
* master For the Bioconductor release scenario, a typical setup would be like this and > BiocManager::version()
[1] '3.11'
# AND
> getRversion()
[1] '4.0.2' ~/bioc/biocthis (RELEASE_3_11) $ git branch
* RELEASE_3_11
master So it would be configured properly if the developer is using the appropriate setup 😉. Great idea to have optional modules such as:
IMO, I'd make |
Hehe true true. Though, I've also written packages say on Bioc-release and used Travis (and now GHA) on Bioc-devel to make sure it's all good. So ehem, this more complicated About Setting up a pkgdown release and devel would need more work, unlike what we have at BioC. Because I'm making changes that users will get to see in the next release version, I want to proof-read them and all that, that's why my docs use the devel branch and not the release one. Though well, after using |
I added the |
Hi Leo, @lcolladotor
I think we can make the
bioc_check.yaml
file more simple since we are invoking the functionfrom R to generate the file. We can use the R instance to dictate the version of the docker images.
For example, if the developer runs
biocthis::use_bioc_github_action()
with a Bioc-devel set-up, the generatedyaml
file should usebioconductor/bioconductor_docker:devel
.This will remove the need to create a step to verify the appropriate R version.
https://github.com/lcolladotor/biocthis/blob/master/actions/check-bioc.yml
Also, I think this file should be under some folder like
inst/templates/check-bioc.yml
.The code can then use
glue
orwhiskers
or whatever package people use nowadays to replacethe Bioconductor version in the
yaml
file after doingsystem.file(..., package = "biocthis")
(Related to #8)
Best,
Marcel
The text was updated successfully, but these errors were encountered: