-
Notifications
You must be signed in to change notification settings - Fork 22
77 lines (62 loc) · 2.24 KB
/
main.yml
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
69
70
71
72
73
74
75
76
77
on:
push:
branches:
- devel
pull_request:
branches:
- devel
name: R-CMD-check
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.bioc-version }})
strategy:
fail-fast: false
matrix:
config:
- { os: windows-2022, bioc-version: 'devel', bioc-mirror: 'https://ftp.gwdg.de/pub/misc/bioconductor'}
- { os: macOS-12, bioc-version: 'devel', bioc-mirror: 'https://ftp.gwdg.de/pub/misc/bioconductor'}
- { os: ubuntu-22.04, bioc-version: 'devel', bioc-mirror: 'https://ftp.gwdg.de/pub/misc/bioconductor'}
- { os: ubuntu-22.04, bioc-version: 'release', bioc-mirror: 'https://packagemanager.posit.co/bioconductor'}
steps:
## R CMD check complains about Windows line endings without this
- name: Configure git
run: |
git config --global core.autocrlf false
- name: Install system libraries
if: runner.os == 'Linux'
run: |
sudo apt-get update && sudo apt-get install libcurl4-openssl-dev
- uses: actions/checkout@v3
- name: Setup R and Bioconductor
uses: grimbough/bioc-actions/setup-bioc@v1
with:
bioc-version: ${{ matrix.config.bioc-version }}
bioc-mirror: ${{ matrix.config.bioc-mirror }}
- uses: r-lib/actions/setup-pandoc@v2
- name: Install dependencies temp
if: runner.os == 'macos'
run: |
BiocManager::install('grimbough/rhdf5filters')
shell: Rscript {0}
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
covr
rcmdcheck
- name: Bioc - Build, Install, Check
uses: grimbough/bioc-actions/build-install-check@v1
- name: Run BiocCheck
uses: grimbough/bioc-actions/run-BiocCheck@v1
with:
error-on: 'never'
arguments: '--no-check-bioc-help'
- name: Test coverage
if: runner.os == 'Windows'
run: |
covr::codecov()
shell: Rscript {0}