Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
grlloyd committed Sep 13, 2024
1 parent 8bab7ee commit 877bcbb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ env:
has_RUnit: 'false'
cache-version: 'cache-v2'
run_docker: 'false'
run_cmd_check: 'false'
run_bioccheck: 'false'

jobs:
build-check:
Expand Down Expand Up @@ -194,13 +196,13 @@ jobs:
shell: Rscript {0}

- name: Install covr
if: github.ref == 'refs/heads/devel' && env.run_covr == 'true' && runner.os == 'Linux'
if: env.run_covr == 'true' && runner.os == 'Linux' ##github.ref == 'refs/heads/devel' &&
run: |
remotes::install_cran("covr")
shell: Rscript {0}

- name: Install pkgdown
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
if: env.run_pkgdown == 'true' && runner.os == 'Linux' ## github.ref == 'refs/heads/devel' &&
run: |
remotes::install_github("r-lib/pkgdown")
shell: Rscript {0}
Expand All @@ -216,6 +218,7 @@ jobs:
env:
_R_CHECK_CRAN_INCOMING_: false
DISPLAY: 99.0
if: env.run_cmd_check == 'true'
run: |
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(
Expand All @@ -240,6 +243,7 @@ jobs:
- name: Run BiocCheck
env:
DISPLAY: 99.0
if: env.run_bioc_check == 'true'
run: |
BiocCheck::BiocCheck(
dir('check', 'tar.gz$', full.names = TRUE),
Expand All @@ -250,17 +254,17 @@ jobs:
shell: Rscript {0}

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

- name: Install package
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
if: env.run_pkgdown == 'true' && runner.os == 'Linux'
run: R CMD INSTALL .

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

- name: Install deploy dependencies
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
if: env.run_pkgdown == 'true' && runner.os == 'Linux'
run: |
apt-get update && apt-get -y install rsync
- name: Deploy pkgdown site to GitHub pages 🚀
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
if: env.run_pkgdown == 'true' && runner.os == 'Linux'
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
clean: false
Expand Down
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ reference:
- trim_whitespace
- combine_columns
- select_columns
- remove_columns
- split_column
- split_records
- AnnotationDb_select
Expand Down

0 comments on commit 877bcbb

Please sign in to comment.