40
40
has_RUnit : ' false'
41
41
cache-version : ' cache-v1'
42
42
run_docker : ' false'
43
- bioc_check : ' false'
44
- cmd_check : ' false'
45
43
46
44
jobs :
47
45
build-check :
54
52
fail-fast : false
55
53
matrix :
56
54
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 '}
60
58
# # Check https://github.com/r-lib/actions/tree/master/examples
61
59
# # for examples using the http-user-agent
62
60
env :
@@ -107,16 +105,16 @@ jobs:
107
105
uses : actions/cache@v3
108
106
with :
109
107
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 -
112
110
113
111
- name : Cache R packages on Linux
114
112
if : " !contains(github.event.head_commit.message, '/nocache') && runner.os == 'Linux' "
115
113
uses : actions/cache@v3
116
114
with :
117
115
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 -
120
118
121
119
# - name: Install Linux system dependencies
122
120
# if: runner.os == 'Linux'
@@ -185,7 +183,6 @@ jobs:
185
183
run : |
186
184
## Pass #2 at installing dependencies
187
185
message(paste('****', Sys.time(), 'pass number 2 at installing dependencies: any remaining dependencies ****'))
188
- httr::set_config(httr::config(http_version = 0))
189
186
remotes::install_local(dependencies = TRUE, repos = BiocManager::repositories(), build_vignettes = TRUE, upgrade = TRUE, force = TRUE)
190
187
shell : Rscript {0}
191
188
@@ -197,13 +194,13 @@ jobs:
197
194
shell : Rscript {0}
198
195
199
196
- 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'
201
198
run : |
202
199
remotes::install_cran("covr")
203
200
shell : Rscript {0}
204
201
205
202
- 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'
207
204
run : |
208
205
remotes::install_github("r-lib/pkgdown")
209
206
shell : Rscript {0}
@@ -216,7 +213,6 @@ jobs:
216
213
shell : Rscript {0}
217
214
218
215
- name : Run CMD check
219
- if : env.cmd_check == 'true'
220
216
env :
221
217
_R_CHECK_CRAN_INCOMING_ : false
222
218
DISPLAY : 99.0
@@ -242,7 +238,6 @@ jobs:
242
238
shell : Rscript {0}
243
239
244
240
- name : Run BiocCheck
245
- if : env.has_bioc_check == 'true'
246
241
env :
247
242
DISPLAY : 99.0
248
243
run : |
@@ -255,17 +250,17 @@ jobs:
255
250
shell : Rscript {0}
256
251
257
252
- 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'
259
254
run : |
260
255
covr::codecov(coverage = covr::package_coverage(type = "all"))
261
256
shell : Rscript {0}
262
257
263
258
- 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'
265
260
run : R CMD INSTALL .
266
261
267
262
- 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'
269
264
run : pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
270
265
shell : Rscript {0}
271
266
# # Note that you need to run pkgdown::deploy_to_branch(new_process = FALSE)
@@ -274,12 +269,12 @@ jobs:
274
269
# # makes the git history recognizable by pkgdown.
275
270
276
271
- 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'
278
273
run : |
279
274
apt-get update && apt-get -y install rsync
280
275
281
276
- 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'
283
278
uses : JamesIves/github-pages-deploy-action@releases/v4
284
279
with :
285
280
clean : false
@@ -290,7 +285,7 @@ jobs:
290
285
if : failure()
291
286
uses : actions/upload-artifact@master
292
287
with :
293
- name : ${{ runner.os }}-biocversion-devel-r-devel -results
288
+ name : ${{ runner.os }}-biocversion-devel-r-4.4 -results
294
289
path : check
295
290
296
291
@@ -301,25 +296,25 @@ jobs:
301
296
needs : build-check
302
297
steps :
303
298
- 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 '"
305
300
uses : actions/checkout@v3
306
301
307
302
- 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 '"
309
304
id : reg_repo_name
310
305
run : |
311
306
echo CONT_IMG_NAME=$(echo ${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
312
307
313
308
- 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 '"
315
310
uses : docker/setup-qemu-action@v2
316
311
317
312
- 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 '"
319
314
uses : docker/setup-buildx-action@v2
320
315
321
316
- 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 '"
323
318
uses : docker/login-action@v2
324
319
with :
325
320
username : ${{ secrets.DOCKERHUB_USERNAME }}
@@ -333,7 +328,7 @@ jobs:
333
328
# # https://seandavi.github.io/BuildABiocWorkshop/articles/HOWTO_BUILD_WORKSHOP.html.
334
329
335
330
- 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()"
337
332
uses : docker/build-push-action@v4
338
333
with :
339
334
context : .
0 commit comments