Skip to content

Commit 9545fa1

Browse files
committed
Add R-CMD-check and BiocCheck GitHub Actions
1 parent 01850bd commit 9545fa1

2 files changed

Lines changed: 82 additions & 0 deletions

File tree

‎.github/workflows/BiocCheck.yaml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: BiocCheck
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
BiocCheck:
11+
runs-on: ubuntu-latest
12+
13+
env:
14+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: r-lib/actions/setup-r@v2
20+
with:
21+
r-version: 'devel'
22+
use-public-rspm: true
23+
24+
- uses: r-lib/actions/setup-pandoc@v2
25+
26+
- name: Install dependencies
27+
run: |
28+
install.packages(c("remotes", "BiocManager"))
29+
BiocManager::install(c("BiocCheck"), ask = FALSE, update = TRUE)
30+
remotes::install_deps(dependencies = TRUE)
31+
shell: Rscript {0}
32+
33+
- name: BiocCheck
34+
run: |
35+
BiocCheck::BiocCheck(".", `quit-with-status` = TRUE, `no-check-bioc-help` = TRUE)
36+
shell: Rscript {0}

‎.github/workflows/R-CMD-check.yaml‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: R-CMD-check
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
R-CMD-check:
11+
runs-on: ${{ matrix.config.os }}
12+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
config:
18+
- {os: macos-latest, r: 'release'}
19+
- {os: windows-latest, r: 'release'}
20+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
21+
- {os: ubuntu-latest, r: 'release'}
22+
- {os: ubuntu-latest, r: 'oldrel-1'}
23+
24+
env:
25+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
26+
R_KEEP_PKG_SOURCE: yes
27+
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- uses: r-lib/actions/setup-pandoc@v2
32+
33+
- uses: r-lib/actions/setup-r@v2
34+
with:
35+
r-version: ${{ matrix.config.r }}
36+
http-user-agent: ${{ matrix.config.http-user-agent }}
37+
use-public-rspm: true
38+
39+
- uses: r-lib/actions/setup-r-dependencies@v2
40+
with:
41+
extra-packages: any::rcmdcheck
42+
needs: check
43+
44+
- uses: r-lib/actions/check-r-package@v2
45+
with:
46+
upload-snapshots: true

0 commit comments

Comments
 (0)