Skip to content

Commit 4f7b503

Browse files
authored
Merge pull request #89 from fgcz/use-pak-for-ci
Fix and optimize CI
2 parents 0cd4491 + 190894b commit 4f7b503

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/r.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,24 @@ jobs:
2525
runs-on: ubuntu-24.04
2626
strategy:
2727
matrix:
28-
r-version: [4.3]
28+
r-version: [4.5]
2929
steps:
3030
- uses: actions/checkout@v4
3131
- name: Set up R ${{ matrix.r-version }}
3232
uses: r-lib/actions/setup-r@v2
3333
with:
3434
r-version: ${{ matrix.r-version }}
35+
use-public-rspm: true
3536
- name: Install Linux packages
36-
run: sudo apt-get install -y mono-mcs mono-xbuild libcurl4-openssl-dev libicu-dev pandoc pandoc-citeproc texlive texlive-latex-extra texlive-fonts-extra
37+
run: sudo apt-get install -y libcurl4-openssl-dev libicu-dev pandoc texlive texlive-latex-extra texlive-fonts-extra
3738
shell: bash {0}
3839
- name: Install dependencies
3940
run: |
40-
install.packages(c("remotes", "covr", "rcmdcheck", "rmarkdown", "protViz", "testthat", "knitr", "BiocManager"))
41-
BiocManager::install(c("BiocStyle", "ExperimentHub", "tartar"))
42-
remotes::install_deps(dependencies = TRUE)
41+
install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))
42+
cat("Repository being used:\n")
43+
print(getOption("repos"))
44+
pak::pkg_install(c("covr", "rcmdcheck", "rmarkdown", "protViz", "testthat", "knitr", "bioc::BiocStyle", "bioc::ExperimentHub", "bioc::tartare"))
45+
pak::local_install_deps(dependencies = TRUE)
4346
shell: Rscript {0}
4447
- name: Check
4548
run: rcmdcheck::rcmdcheck(build_args = "", args = "", error_on = "error", check_dir = "/tmp/rawrr.Rcheck")
@@ -51,4 +54,4 @@ jobs:
5154
with:
5255
name: rawrr.Rcheck
5356
path: /tmp/rawrr.Rcheck
54-
if-no-files-found: warn
57+
if-no-files-found: warn

0 commit comments

Comments
 (0)