4
4
- master
5
5
- devel
6
6
7
- name : check-bioc3.16
8
-
9
- # # If you need to clear the cache of packages, update the number inside
10
- # # cache-version as discussed at https://github.com/r-lib/actions/issues/86.
11
- # # Note that you can always run a GHA test without the cache by using the word
12
- # # "/nocache" in the commit message.
13
- env :
14
- cache-version : ' cache-v1'
7
+ name : check-bioc
15
8
16
9
jobs :
17
10
build-check :
23
16
fail-fast : false
24
17
matrix :
25
18
config :
26
- - { os: ubuntu-20.04, r: '4.2', bioc: '3.16', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
27
- # - { os: macOS-latest, r: '4.2', bioc: '3.16'}
28
- # - { os: windows-latest, r: '4.2', bioc: '3.16'}
19
+ - { os: ubuntu-latest, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
29
20
env :
30
21
R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
31
22
RSPM : ${{ matrix.config.rspm }}
@@ -47,60 +38,22 @@ jobs:
47
38
uses : r-lib/actions/setup-pandoc@v2
48
39
49
40
- name : Query dependencies
50
- run : |
51
- install.packages('remotes')
52
- saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
53
- shell : Rscript {0}
54
-
55
- - name : Cache R packages
56
- if : " !contains(github.event.head_commit.message, '/nocache') && runner.os != 'Linux'"
57
- uses : actions/cache@v2
58
- with :
59
- path : ${{ env.R_LIBS_USER }}
60
- key : ${{ env.cache-version }}-${{ runner.os }}-biocversion-${{ matrix.config.bioc }}-r-${{ matrix.config.r }}-${{ hashFiles('.github/depends.Rds') }}
61
- restore-keys : ${{ env.cache-version }}-${{ runner.os }}-biocversion-${{ matrix.config.bioc }}-r-${{ matrix.config.r }}-
62
-
63
- - name : Cache R packages on Linux
64
- if : " !contains(github.event.head_commit.message, '/nocache') && runner.os == 'Linux' "
65
- uses : actions/cache@v2
41
+ uses : r-lib/actions/setup-r-dependencies@v2
66
42
with :
67
- path : /home/runner/work/_temp/Library
68
- key : ${{ env.cache-version }}-${{ runner.os }}-biocversion-${{ matrix.config.bioc }}-r-${{ matrix.config.r }}-${{ hashFiles('.github/depends.Rds') }}
69
- restore-keys : ${{ env.cache-version }}-${{ runner.os }}-biocversion-${{ matrix.config.bioc }}-r-${{ matrix.config.r }}-
43
+ extra-packages : any::rcmdcheck
44
+ needs : check
70
45
71
46
- name : Install Linux system dependencies
72
47
if : runner.os == 'Linux'
73
48
run : |
49
+ Rscript -e 'install.packages("remotes")'
74
50
sysreqs=$(Rscript -e 'cat("apt-get update -y && apt-get install -y", paste(gsub("apt-get install -y ", "", remotes::system_requirements("ubuntu", "20.04")), collapse = " "))')
75
51
echo $sysreqs
76
52
sudo -s eval "$sysreqs"
77
53
78
54
# SpatialExperiment (magick) dependency
79
55
sudo apt-get install -y libmagick++-dev
80
56
81
- - name : Install macOS system dependencies
82
- if : matrix.config.os == 'macOS-latest'
83
- run : |
84
- ## Enable installing XML from source if needed
85
- brew install libxml2
86
- echo "XML_CONFIG=/usr/local/opt/libxml2/bin/xml2-config" >> $GITHUB_ENV
87
-
88
- ## Required to install magick as noted at
89
- ## https://github.com/r-lib/usethis/commit/f1f1e0d10c1ebc75fd4c18fa7e2de4551fd9978f#diff-9bfee71065492f63457918efcd912cf2
90
- brew install imagemagick@6
91
-
92
- ## For textshaping, required by ragg, and required by pkgdown
93
- brew install harfbuzz fribidi
94
-
95
- ## For installing usethis's dependency gert
96
- brew install libgit2
97
-
98
- - name : Install Windows system dependencies
99
- if : runner.os == 'Windows'
100
- run : |
101
- # Nothing needed
102
- shell : Rscript {0}
103
-
104
57
- name : Install BiocManager
105
58
run : |
106
59
message(paste('****', Sys.time(), 'installing BiocManager ****'))
109
62
110
63
- name : Set BiocVersion
111
64
run : |
112
- BiocManager::install(version = "${{ matrix.config.bioc }}", ask = FALSE)
65
+ BiocManager::install(ask = FALSE)
113
66
shell : Rscript {0}
114
67
115
68
- name : Install dependencies pass 1
140
93
tinytex::tlmgr_install("pdfcrop")
141
94
142
95
## For running the checks
143
- message(paste('****', Sys.time(), 'installing rcmdcheck and BiocCheck ****'))
144
- remotes::install_cran("rcmdcheck")
96
+ message(paste('****', Sys.time(), 'installing BiocCheck ****'))
145
97
BiocManager::install("BiocCheck")
146
98
shell : Rscript {0}
147
99
@@ -153,25 +105,13 @@ jobs:
153
105
shell : Rscript {0}
154
106
155
107
- name : Run CMD check
156
- env :
157
- _R_CHECK_CRAN_INCOMING_ : false
158
- run : |
159
- rcmdcheck::rcmdcheck(
160
- args = c("--no-build-vignettes", "--no-manual", "--timings"),
161
- build_args = c("--no-manual", "--no-resave-data"),
162
- error_on = "warning",
163
- check_dir = "check"
164
- )
165
- shell : Rscript {0}
166
-
167
- # # Might need an to add this to the if: && runner.os == 'Linux'
168
- - name : Reveal testthat details
169
- run : find . -name testthat.Rout -exec cat '{}' ';'
108
+ uses : r-lib/actions/check-r-package@v2
109
+ with :
110
+ error-on : ' "error"'
170
111
171
112
- name : Run BiocCheck
172
113
run : |
173
114
BiocCheck::BiocCheck(
174
- dir('check', 'tar.gz$', full.names = TRUE),
175
115
`quit-with-status` = TRUE,
176
116
`no-check-R-ver` = TRUE,
177
117
`no-check-bioc-help` = TRUE
@@ -193,16 +133,14 @@ jobs:
193
133
run : |
194
134
git config --local user.email "[email protected] "
195
135
git config --local user.name "GitHub Actions"
196
- # For Seurat only
197
- sudo apt-get install -y libhdf5-dev libgeos++-dev libgeos-3.8.0 libgeos-c1v5 libgeos-dev libgeos-doc
198
136
shell : bash {0}
199
137
200
138
# # Changing package deployment to make the necessary changes to the vignette files
201
139
- name : Deploy package
202
140
if : github.ref == 'refs/heads/master' && runner.os == 'Linux'
203
141
run : |
204
- remotes::install_cran(c("pkgdown", "Seurat", "hdf5r" ), upgrade = TRUE)
205
- BiocManager::install(c("progeny ", "SpatialExperiment"), ask = FALSE)
142
+ remotes::install_cran(c("pkgdown"), upgrade = TRUE)
143
+ BiocManager::install(c("decoupleR ", "SpatialExperiment"), ask = FALSE)
206
144
207
145
## modified from pkgdown::deploy_to_branch
208
146
deploy_to_branch_mod <- function(pkg = ".", commit_message = pkgdown:::construct_commit_message(pkg),
@@ -285,10 +223,3 @@ jobs:
285
223
push : true
286
224
tags : tanevski/mistyr:devel
287
225
288
- - name : Upload check results
289
- if : failure()
290
- uses : actions/upload-artifact@master
291
- with :
292
- name : ${{ runner.os }}-biocversion-${{ matrix.config.bioc }}-r-${{ matrix.config.r }}-results
293
- path : check
294
-
0 commit comments