Skip to content

Commit 877bcbb

Browse files
committed
fix github actions
1 parent 8bab7ee commit 877bcbb

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/check-bioc.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ env:
4040
has_RUnit: 'false'
4141
cache-version: 'cache-v2'
4242
run_docker: 'false'
43+
run_cmd_check: 'false'
44+
run_bioccheck: 'false'
4345

4446
jobs:
4547
build-check:
@@ -194,13 +196,13 @@ jobs:
194196
shell: Rscript {0}
195197

196198
- 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' &&
198200
run: |
199201
remotes::install_cran("covr")
200202
shell: Rscript {0}
201203

202204
- 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' &&
204206
run: |
205207
remotes::install_github("r-lib/pkgdown")
206208
shell: Rscript {0}
@@ -216,6 +218,7 @@ jobs:
216218
env:
217219
_R_CHECK_CRAN_INCOMING_: false
218220
DISPLAY: 99.0
221+
if: env.run_cmd_check == 'true'
219222
run: |
220223
options(crayon.enabled = TRUE)
221224
rcmdcheck::rcmdcheck(
@@ -240,6 +243,7 @@ jobs:
240243
- name: Run BiocCheck
241244
env:
242245
DISPLAY: 99.0
246+
if: env.run_bioc_check == 'true'
243247
run: |
244248
BiocCheck::BiocCheck(
245249
dir('check', 'tar.gz$', full.names = TRUE),
@@ -250,17 +254,17 @@ jobs:
250254
shell: Rscript {0}
251255

252256
- 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'
254258
run: |
255259
covr::codecov(coverage = covr::package_coverage(type = "all"))
256260
shell: Rscript {0}
257261

258262
- 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'
260264
run: R CMD INSTALL .
261265

262266
- 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'
264268
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
265269
shell: Rscript {0}
266270
## Note that you need to run pkgdown::deploy_to_branch(new_process = FALSE)
@@ -269,12 +273,12 @@ jobs:
269273
## makes the git history recognizable by pkgdown.
270274

271275
- 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'
273277
run: |
274278
apt-get update && apt-get -y install rsync
275279
276280
- 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'
278282
uses: JamesIves/github-pages-deploy-action@releases/v4
279283
with:
280284
clean: false

_pkgdown.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ reference:
9898
- trim_whitespace
9999
- combine_columns
100100
- select_columns
101+
- remove_columns
101102
- split_column
102103
- split_records
103104
- AnnotationDb_select

0 commit comments

Comments
 (0)