@@ -34,10 +34,10 @@ name: R-CMD-check-bioc
3434# # Note that you can always run a GHA test without the cache by using the word
3535# # "/nocache" in the commit message.
3636env :
37- has_testthat : ' true '
37+ has_testthat : ' false '
3838 run_covr : ' true'
3939 run_pkgdown : ' true'
40- has_RUnit : ' false '
40+ has_RUnit : ' true '
4141 has_BiocCheck : ' false'
4242 cache-version : ' cache-v1'
4343
@@ -123,33 +123,14 @@ jobs:
123123 - name : Install macOS system dependencies
124124 if : matrix.config.os == 'macOS-latest'
125125 run : |
126- ## Enable installing XML from source if needed
127- brew install libxml2
128- echo "XML_CONFIG=/usr/local/opt/libxml2/bin/xml2-config" >> $GITHUB_ENV
129-
130- ## Required to install magick as noted at
131- ## https://github.com/r-lib/usethis/commit/f1f1e0d10c1ebc75fd4c18fa7e2de4551fd9978f#diff-9bfee71065492f63457918efcd912cf2
132- brew install imagemagick@6
133-
134- ## For textshaping, required by ragg, and required by pkgdown
135- brew install harfbuzz fribidi
136-
137- ## For installing usethis's dependency gert
138- brew install libgit2
139-
140- ## required for ncdf4
141- ## brew install netcdf ## Does not work as it is compiled with gcc
142- ## Use pre-compiled libraries from https://mac.r-project.org/libs-4/
143- curl -O https://mac.r-project.org/libs-4/netcdf-4.7.4-darwin.17-x86_64.tar.gz
144- tar fvxzm netcdf-4.7.4-darwin.17-x86_64.tar.gz -C /
145- rm netcdf-4.7.4-darwin.17-x86_64.tar.gz
146- curl -O https://mac.r-project.org/libs-4/hdf5-1.12.0-darwin.17-x86_64.tar.gz
147- tar fvxzm hdf5-1.12.0-darwin.17-x86_64.tar.gz -C /
148- rm hdf5-1.12.0-darwin.17-x86_64.tar.gz
149- curl -O https://mac.r-project.org/libs-4/szip-2.1.1-darwin.17-x86_64.tar.gz
150- tar fvxzm szip-2.1.1-darwin.17-x86_64.tar.gz -C /
151- rm szip-2.1.1-darwin.17-x86_64.tar.gz
152-
126+ ## Install pre-compiled libraries from
127+ ## https://mac.r-project.org/bin/darwin17/x86_64/
128+ ## The path might need to be updated depending on the macOS version.
129+
130+ # curl -O https://mac.r-project.org/bin/darwin20/arm64/openssl-3.3.2-darwin.20-arm64.tar.xz
131+ # tar -xvmpf openssl-3.3.2-darwin.20-arm64.tar.xz -C /
132+ # rm openssl-3.3.2-darwin.20-arm64.tar.xz
133+
153134 - name : Install Windows system dependencies
154135 if : runner.os == 'Windows'
155136 run : |
@@ -201,17 +182,17 @@ jobs:
201182 if : env.has_RUnit == 'true'
202183 run : |
203184 ## Install BiocGenerics
204- BiocManager::install("BiocGenerics")
185+ BiocManager::install(c( "BiocGenerics", "RUnit") )
205186 shell : Rscript {0}
206187
207188 - name : Install covr
208- if : github.ref == 'refs/heads/master ' && env.run_covr == 'true' && runner.os == 'Linux'
189+ if : github.ref == 'refs/heads/devel ' && env.run_covr == 'true' && runner.os == 'Linux'
209190 run : |
210191 remotes::install_cran("covr")
211192 shell : Rscript {0}
212193
213194 - name : Install pkgdown
214- if : github.ref == 'refs/heads/master ' && env.run_pkgdown == 'true' && runner.os == 'Linux'
195+ if : github.ref == 'refs/heads/devel ' && env.run_pkgdown == 'true' && runner.os == 'Linux'
215196 run : |
216197 remotes::install_github("r-lib/pkgdown")
217198 shell : Rscript {0}
@@ -261,20 +242,21 @@ jobs:
261242 shell : Rscript {0}
262243
263244 - name : Test coverage
264- if : github.ref == 'refs/heads/master ' && env.run_covr == 'true' && runner.os == 'Linux'
245+ if : github.ref == 'refs/heads/devel ' && env.run_covr == 'true' && runner.os == 'Linux'
265246 run : |
266247 covr::codecov()
267248 shell : Rscript {0}
268249
269250 - name : Install package
270- if : github.ref == 'refs/heads/master ' && env.run_pkgdown == 'true' && runner.os == 'Linux'
251+ if : github.ref == 'refs/heads/devel ' && env.run_pkgdown == 'true' && runner.os == 'Linux'
271252 run : R CMD INSTALL .
272253
273254 - name : Deploy package
274- if : github.ref == 'refs/heads/master ' && env.run_pkgdown == 'true' && runner.os == 'Linux'
255+ if : github.ref == 'refs/heads/devel ' && env.run_pkgdown == 'true' && runner.os == 'Linux'
275256 run : |
276257 git config --local user.email "[email protected] " 277258 git config --local user.name "GitHub Actions"
259+ git config --global --add safe.directory /__w/mzR/mzR
278260 Rscript -e "pkgdown::deploy_to_branch(new_process = FALSE)"
279261 shell : bash {0}
280262 # # Note that you need to run pkgdown::deploy_to_branch(new_process = FALSE)
0 commit comments