-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.68 KB
/
BiocCheck.yaml
File metadata and controls
62 lines (51 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: BiocCheck
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
BiocCheck:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
use-public-rspm: true
- uses: r-lib/actions/setup-pandoc@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev
- name: Install BiocManager and BiocCheck
run: |
install.packages("BiocManager", repos = "https://cloud.r-project.org")
BiocManager::install("BiocCheck", update = FALSE, ask = FALSE)
shell: Rscript {0}
- name: Install package dependencies
run: |
BiocManager::install(c("remotes"), update = FALSE, ask = FALSE)
remotes::install_deps(dependencies = TRUE, repos = BiocManager::repositories())
shell: Rscript {0}
- name: Run BiocCheck (warnings allowed)
run: |
result <- BiocCheck::BiocCheck(
".",
`quit-with-status` = FALSE,
`no-check-bioc-help` = TRUE
)
# Print summary
cat("\n\n=== BiocCheck Summary ===\n")
print(result)
# Only fail on ERRORs, not WARNINGs
if (length(result$error) > 0) {
cat("\n\nERRORS found:\n")
print(result$error)
quit(status = 1)
} else {
cat("\n\nNo critical errors. Package ready for submission.\n")
}
shell: Rscript {0}