Skip to content

Commit 4499323

Browse files
committed
update actions
1 parent 54c9280 commit 4499323

File tree

1 file changed

+21
-26
lines changed

1 file changed

+21
-26
lines changed

.github/workflows/check-bioc.yml

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ env:
4040
has_RUnit: 'false'
4141
cache-version: 'cache-v1'
4242
run_docker: 'false'
43-
bioc_check: 'false'
44-
cmd_check: 'false'
4543

4644
jobs:
4745
build-check:
@@ -54,9 +52,9 @@ jobs:
5452
fail-fast: false
5553
matrix:
5654
config:
57-
- { os: ubuntu-latest, r: 'devel', bioc: '3.19', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest" }
58-
- { os: macOS-latest, r: 'devel', bioc: '3.19'}
59-
- { os: windows-latest, r: 'devel', bioc: '3.19'}
55+
- { os: ubuntu-latest, r: '4.4', bioc: '3.20', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest" }
56+
- { os: macOS-latest, r: '4.4', bioc: '3.20'}
57+
- { os: windows-latest, r: '4.4', bioc: '3.20'}
6058
## Check https://github.com/r-lib/actions/tree/master/examples
6159
## for examples using the http-user-agent
6260
env:
@@ -107,16 +105,16 @@ jobs:
107105
uses: actions/cache@v3
108106
with:
109107
path: ${{ env.R_LIBS_USER }}
110-
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-devel-${{ hashFiles('.github/depends.Rds') }}
111-
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-devel-
108+
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.4-${{ hashFiles('.github/depends.Rds') }}
109+
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.4-
112110

113111
- name: Cache R packages on Linux
114112
if: "!contains(github.event.head_commit.message, '/nocache') && runner.os == 'Linux' "
115113
uses: actions/cache@v3
116114
with:
117115
path: /home/runner/work/_temp/Library
118-
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-devel-${{ hashFiles('.github/depends.Rds') }}
119-
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-devel-
116+
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.4-${{ hashFiles('.github/depends.Rds') }}
117+
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.4-
120118

121119
# - name: Install Linux system dependencies
122120
# if: runner.os == 'Linux'
@@ -185,7 +183,6 @@ jobs:
185183
run: |
186184
## Pass #2 at installing dependencies
187185
message(paste('****', Sys.time(), 'pass number 2 at installing dependencies: any remaining dependencies ****'))
188-
httr::set_config(httr::config(http_version = 0))
189186
remotes::install_local(dependencies = TRUE, repos = BiocManager::repositories(), build_vignettes = TRUE, upgrade = TRUE, force = TRUE)
190187
shell: Rscript {0}
191188

@@ -197,13 +194,13 @@ jobs:
197194
shell: Rscript {0}
198195

199196
- name: Install covr
200-
if: github.ref == 'refs/heads/main' && env.run_covr == 'true' && runner.os == 'Linux'
197+
if: github.ref == 'refs/heads/devel' && env.run_covr == 'true' && runner.os == 'Linux'
201198
run: |
202199
remotes::install_cran("covr")
203200
shell: Rscript {0}
204201

205202
- name: Install pkgdown
206-
if: github.ref == 'refs/heads/main' && env.run_pkgdown == 'true' && runner.os == 'Linux'
203+
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
207204
run: |
208205
remotes::install_github("r-lib/pkgdown")
209206
shell: Rscript {0}
@@ -216,7 +213,6 @@ jobs:
216213
shell: Rscript {0}
217214

218215
- name: Run CMD check
219-
if: env.cmd_check == 'true'
220216
env:
221217
_R_CHECK_CRAN_INCOMING_: false
222218
DISPLAY: 99.0
@@ -242,7 +238,6 @@ jobs:
242238
shell: Rscript {0}
243239

244240
- name: Run BiocCheck
245-
if: env.has_bioc_check == 'true'
246241
env:
247242
DISPLAY: 99.0
248243
run: |
@@ -255,17 +250,17 @@ jobs:
255250
shell: Rscript {0}
256251

257252
- name: Test coverage
258-
if: github.ref == 'refs/heads/main' && env.run_covr == 'true' && runner.os == 'Linux'
253+
if: github.ref == 'refs/heads/devel' && env.run_covr == 'true' && runner.os == 'Linux'
259254
run: |
260255
covr::codecov(coverage = covr::package_coverage(type = "all"))
261256
shell: Rscript {0}
262257

263258
- name: Install package
264-
if: github.ref == 'refs/heads/main' && env.run_pkgdown == 'true' && runner.os == 'Linux'
259+
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
265260
run: R CMD INSTALL .
266261

267262
- name: Build pkgdown site
268-
if: github.ref == 'refs/heads/main' && env.run_pkgdown == 'true' && runner.os == 'Linux'
263+
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
269264
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
270265
shell: Rscript {0}
271266
## Note that you need to run pkgdown::deploy_to_branch(new_process = FALSE)
@@ -274,12 +269,12 @@ jobs:
274269
## makes the git history recognizable by pkgdown.
275270

276271
- name: Install deploy dependencies
277-
if: github.ref == 'refs/heads/main' && env.run_pkgdown == 'true' && runner.os == 'Linux'
272+
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
278273
run: |
279274
apt-get update && apt-get -y install rsync
280275
281276
- name: Deploy pkgdown site to GitHub pages 🚀
282-
if: github.ref == 'refs/heads/main' && env.run_pkgdown == 'true' && runner.os == 'Linux'
277+
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
283278
uses: JamesIves/github-pages-deploy-action@releases/v4
284279
with:
285280
clean: false
@@ -290,7 +285,7 @@ jobs:
290285
if: failure()
291286
uses: actions/upload-artifact@master
292287
with:
293-
name: ${{ runner.os }}-biocversion-devel-r-devel-results
288+
name: ${{ runner.os }}-biocversion-devel-r-4.4-results
294289
path: check
295290

296291

@@ -301,25 +296,25 @@ jobs:
301296
needs: build-check
302297
steps:
303298
- name: Checkout Repository
304-
if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/main'"
299+
if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/devel'"
305300
uses: actions/checkout@v3
306301

307302
- name: Register repo name
308-
if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/main'"
303+
if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/devel'"
309304
id: reg_repo_name
310305
run: |
311306
echo CONT_IMG_NAME=$(echo ${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
312307
313308
- name: Set up QEMU
314-
if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/main'"
309+
if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/devel'"
315310
uses: docker/setup-qemu-action@v2
316311

317312
- name: Set up Docker Buildx
318-
if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/main'"
313+
if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/devel'"
319314
uses: docker/setup-buildx-action@v2
320315

321316
- name: Login to Docker Hub
322-
if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/main'"
317+
if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/devel'"
323318
uses: docker/login-action@v2
324319
with:
325320
username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -333,7 +328,7 @@ jobs:
333328
## https://seandavi.github.io/BuildABiocWorkshop/articles/HOWTO_BUILD_WORKSHOP.html.
334329

335330
- name: Build and Push Docker
336-
if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/main' && success()"
331+
if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/devel' && success()"
337332
uses: docker/build-push-action@v4
338333
with:
339334
context: .

0 commit comments

Comments
 (0)