Skipping test against R-devel in certain months
According to <https://contributions.bioconductor.org/use-devel.html>, Bioconductor relies on R-release during the April-October release cycle, which makes it challenging to do a CI check on R-devel. So we skip the check against R-devel during these months (until a better solution comes around).
This commit is contained in:
parent
c88c282d5c
commit
dab9845338
1 changed files with 6 additions and 9 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
|
@ -30,6 +30,9 @@ jobs:
|
||||||
- {os: ubuntu-latest, r: 'release'}
|
- {os: ubuntu-latest, r: 'release'}
|
||||||
- {os: ubuntu-latest, r: 'devel'}
|
- {os: ubuntu-latest, r: 'devel'}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Retrieving current month
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: echo "CURRENT_MONTH=$(date +%m)" >> $GITHUB_ENV
|
||||||
|
|
||||||
# Checking out code -------------------------------------- #
|
# Checking out code -------------------------------------- #
|
||||||
- name: Checking out the repository
|
- name: Checking out the repository
|
||||||
|
|
@ -72,24 +75,18 @@ jobs:
|
||||||
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
|
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
|
||||||
|
|
||||||
# Installing package dependencies ------------------------ #
|
# Installing package dependencies ------------------------ #
|
||||||
- name: Installing package dependencies (release)
|
- name: Installing package dependencies
|
||||||
if: ${{ matrix.config.r == 'release' }}
|
if: ${{ env.CURRENT_MONTH < 4 || env.CURRENT_MONTH > 10 }}
|
||||||
run: |
|
run: |
|
||||||
remotes::install_cran(c("rcmdcheck", "BiocManager"))
|
remotes::install_cran(c("rcmdcheck", "BiocManager"))
|
||||||
BiocManager::install("GenomicRanges")
|
BiocManager::install("GenomicRanges")
|
||||||
BiocManager::install("Rsamtools")
|
BiocManager::install("Rsamtools")
|
||||||
remotes::install_deps(dependencies = TRUE)
|
remotes::install_deps(dependencies = TRUE)
|
||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
- name: Installing package dependencies (devel)
|
|
||||||
if: ${{ matrix.config.r == 'devel' }}
|
|
||||||
run: |
|
|
||||||
remotes::install_cran(c("rcmdcheck", "BiocManager"))
|
|
||||||
remotes::install_deps(dependencies = TRUE)
|
|
||||||
BiocManager::install(version = "devel")
|
|
||||||
shell: Rscript {0}
|
|
||||||
|
|
||||||
# Checking package --------------------------------------- #
|
# Checking package --------------------------------------- #
|
||||||
- name: Checking package
|
- name: Checking package
|
||||||
|
if: ${{ env.CURRENT_MONTH < 4 || env.CURRENT_MONTH > 10 }}
|
||||||
env:
|
env:
|
||||||
_R_CHECK_CRAN_INCOMING_REMOTE_: false
|
_R_CHECK_CRAN_INCOMING_REMOTE_: false
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue