-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (61 loc) · 1.8 KB
/
BiocCheck.yaml
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
63
64
65
66
67
68
on:
push:
branches:
- main
paths:
- 'R/**'
- 'DESCRIPTION'
- 'NAMESPACE'
- 'src/**'
- 'tests/**'
pull_request:
schedule:
# Rerun checks daily, after facilebio/facilebio_base_extra is rebuilt.
# This will catch failures due to changes in functionality of packages
# we depend on.
# facilebio_base_extra builds every day 4AM pacific time (11 AM UTC), so
# we will build this an hour after that (the same time facilebio/facilebio)
- cron: '0 12 * * *'
workflow_dispatch:
inputs:
dummy:
description: 'A dummy variable to enable manual workflow execution'
required: false
default: 'gitty up'
name: BiocCheck
env:
has_testthat: 'true'
jobs:
BiocCheck:
runs-on: ubuntu-latest
# strategy:
# matrix:
# image: ['facilebio/facilebio', 'facilebio/facilebio:devel']
# container: ${{ matrix.image }}
container: facilebio/facilebio
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup R
uses: r-lib/actions/setup-r@v1
with:
install-r: false
- name: Install dependencies
run: remotes::install_deps(dependencies = TRUE, upgrade = FALSE)
shell: Rscript {0}
- name: Run BiocCheck
env:
DISPLAY: 99.0
run: |
BiocCheck::BiocCheck(
dir('check', 'tar.gz$', full.names = TRUE),
`quit-with-status` = TRUE,
`no-check-R-ver` = TRUE,
`no-check-bioc-help` = TRUE,
`no-check-coding-practices` = TRUE)
shell: Rscript {0}