40
40
has_RUnit : ' false'
41
41
cache-version : ' cache-v2'
42
42
run_docker : ' false'
43
+ run_cmd_check : ' false'
44
+ run_bioccheck : ' false'
43
45
44
46
jobs :
45
47
build-check :
@@ -194,13 +196,13 @@ jobs:
194
196
shell : Rscript {0}
195
197
196
198
- name : Install covr
197
- if : github.ref == 'refs/heads/devel ' && env.run_covr == 'true' && runner.os == 'Linux'
199
+ if : env.run_covr == 'true ' && runner.os == 'Linux' # #github.ref == 'refs/heads/devel' &&
198
200
run : |
199
201
remotes::install_cran("covr")
200
202
shell : Rscript {0}
201
203
202
204
- name : Install pkgdown
203
- if : github.ref == 'refs/heads/devel ' && env.run_pkgdown == 'true' && runner.os == 'Linux'
205
+ if : env.run_pkgdown == 'true ' && runner.os == 'Linux' # # github.ref == 'refs/heads/devel' &&
204
206
run : |
205
207
remotes::install_github("r-lib/pkgdown")
206
208
shell : Rscript {0}
@@ -216,6 +218,7 @@ jobs:
216
218
env :
217
219
_R_CHECK_CRAN_INCOMING_ : false
218
220
DISPLAY : 99.0
221
+ if : env.run_cmd_check == 'true'
219
222
run : |
220
223
options(crayon.enabled = TRUE)
221
224
rcmdcheck::rcmdcheck(
@@ -240,6 +243,7 @@ jobs:
240
243
- name : Run BiocCheck
241
244
env :
242
245
DISPLAY : 99.0
246
+ if : env.run_bioc_check == 'true'
243
247
run : |
244
248
BiocCheck::BiocCheck(
245
249
dir('check', 'tar.gz$', full.names = TRUE),
@@ -250,17 +254,17 @@ jobs:
250
254
shell : Rscript {0}
251
255
252
256
- name : Test coverage
253
- if : github.ref == 'refs/heads/devel' && env.run_covr == 'true' && runner.os == 'Linux'
257
+ if : env.run_covr == 'true' && runner.os == 'Linux'
254
258
run : |
255
259
covr::codecov(coverage = covr::package_coverage(type = "all"))
256
260
shell : Rscript {0}
257
261
258
262
- name : Install package
259
- if : github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
263
+ if : env.run_pkgdown == 'true' && runner.os == 'Linux'
260
264
run : R CMD INSTALL .
261
265
262
266
- name : Build pkgdown site
263
- if : github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
267
+ if : env.run_pkgdown == 'true' && runner.os == 'Linux'
264
268
run : pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
265
269
shell : Rscript {0}
266
270
# # Note that you need to run pkgdown::deploy_to_branch(new_process = FALSE)
@@ -269,12 +273,12 @@ jobs:
269
273
# # makes the git history recognizable by pkgdown.
270
274
271
275
- name : Install deploy dependencies
272
- if : github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
276
+ if : env.run_pkgdown == 'true' && runner.os == 'Linux'
273
277
run : |
274
278
apt-get update && apt-get -y install rsync
275
279
276
280
- name : Deploy pkgdown site to GitHub pages 🚀
277
- if : github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
281
+ if : env.run_pkgdown == 'true' && runner.os == 'Linux'
278
282
uses : JamesIves/github-pages-deploy-action@releases/v4
279
283
with :
280
284
clean : false
0 commit comments