Skip to content

Commit

Permalink
Fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed May 28, 2024
1 parent f343d35 commit c1e532f
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,22 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Check out repo
uses: actions/checkout@v2

- name: Install dependencies
run: |
dependencies <- remotes::local_package_deps(dependencies = TRUE)
leftovers <- setdiff(dependencies, installed.packages())
BiocManager::install(leftovers, ask=FALSE, Ncpu=2L)
BiocManager::install(c("rcmdcheck", "magick", "BiocManager", "BiocCheck"), ask=FALSE, Ncpu=2L)
shell: Rscript {0}

- name: Check
uses: r-lib/actions/check-r-package@v2

- name: BiocCheck
run: BiocCheck::BiocCheck(dir('check', 'tar.gz$', full.names = TRUE), `quit-with-status` = TRUE)
shell: Rscript {0}
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: release
http-user-agent: release
use-public-rspm: true

- name: Install Deps
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache: true

- uses: r-lib/actions/check-r-package@v2

- name: Run BiocCheck
uses: insightsengineering/bioc-check-action@v1

0 comments on commit c1e532f

Please sign in to comment.