Skip to content

Use pak instead of remotes #152

Use pak instead of remotes

Use pak instead of remotes #152

Workflow file for this run

---
name: Staged dependencies action test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
smoke-test:
runs-on: ubuntu-latest
name: ${{ matrix.image }}, version ${{ matrix.tag }}
container:
image: ${{ matrix.image }}:${{ matrix.tag }}
strategy:
fail-fast: false
matrix:
image: ["rocker/verse"]
tag: ["4.2.1", "4.1.3", "4.0.3"]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Checkout test repo
uses: actions/checkout@v3
with:
repository: "openpharma/stageddeps.elecinfra"
path: stageddeps.elecinfra
- name: Test staged dependencies for elecinfra
uses: ./
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
with:
run-system-dependencies: true
path: stageddeps.elecinfra
- name: Install BiocManager
run: |
options(repos = c(CRAN = "https://cloud.r-project.org/"))
ncores <- parallel::detectCores(all.tests = FALSE, logical = TRUE)
cat(paste("\n\nnumber of cores detected:", ncores, "\n\n"))
if (!require("BiocManager")) install.packages("BiocManager", upgrade = "never", Ncpus = ncores)
shell: Rscript {0}
- name: Test staged dependencies with more parameters
uses: ./
with:
path: stageddeps.elecinfra
version: v0.3.1
enable-bioc-repos: true
enable-check: false
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}