Browse code

Added BiocCheck to Git Actions and changed dependency in standard check

Joshua D. Campbell authored on 30/03/2022 16:10:47
Showing 2 changed files

1 1
new file mode 100644
... ...
@@ -0,0 +1,56 @@
1
+# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
2
+# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3
+on:
4
+  push:
5
+    branches: [devel, master]
6
+  pull_request:
7
+    branches: [devel, master]
8
+
9
+name: BioC-check
10
+
11
+jobs:
12
+  R-CMD-check:
13
+    runs-on: ${{ matrix.config.os }}
14
+
15
+    name: ${{ matrix.config.os }} (${{ matrix.config.r }})
16
+
17
+    strategy:
18
+      fail-fast: false
19
+      matrix:
20
+        config:
21
+          - {os: macOS-latest,   r: 'release'}
22
+
23
+    env:
24
+      GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
25
+      R_KEEP_PKG_SOURCE: yes
26
+
27
+    steps:
28
+      - uses: actions/checkout@v2
29
+
30
+      - uses: r-lib/actions/setup-pandoc@v1
31
+
32
+      - uses: r-lib/actions/setup-r@v1
33
+        with:
34
+          r-version: ${{ matrix.config.r }}
35
+          http-user-agent: ${{ matrix.config.http-user-agent }}
36
+          use-public-rspm: true
37
+
38
+      - uses: r-lib/actions/setup-r-dependencies@v1
39
+        with:
40
+          extra-packages: rcmdcheck
41
+
42
+      - name: Install XQuartz on macOS
43
+        if: runner.os == 'macOS'
44
+        run: brew install xquartz --cask
45
+          
46
+      - name: Run BiocCheck
47
+        run: |
48
+          BiocManager::install("BiocCheck")
49
+          library(BiocCheck)
50
+          BiocCheck::BiocCheck(".",
51
+              `quit-with-status` = TRUE,
52
+              `no-check-R-ver` = TRUE,
53
+              `no-check-bioc-help` = TRUE
54
+          )
55
+        shell: Rscript {0}
56
+        
... ...
@@ -35,12 +35,16 @@ jobs:
35 35
         with:
36 36
           r-version: ${{ matrix.config.r }}
37 37
           http-user-agent: ${{ matrix.config.http-user-agent }}
38
-          use-public-rspm: true
38
+          use-public-rspm: false
39 39
 
40 40
       - name: Install XQuartz on macOS
41 41
         if: runner.os == 'macOS'
42 42
         run: brew install xquartz --cask
43 43
 
44
+      - name: Install fftw3 on macOS
45
+        if: runner.os == 'macOS'
46
+        run: brew install fftw
47
+
44 48
       - uses: r-lib/actions/setup-r-dependencies@v1
45 49
         with:
46 50
           extra-packages: rcmdcheck, tinytex