Skip to content

Commit

Permalink
setup GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
mbstadler committed Nov 2, 2023
0 parents commit edc354d
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/test-basiliskStart-fallback.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
on:
workflow_dispatch:
push:

name: test-basiliskStart-fallback

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.bioc }}

strategy:
fail-fast: false
matrix:
config:
# - { os: macOS-latest, bioc: 'devel'}
# - { os: ubuntu-latest, bioc: 'devel'}
- { os: macOS-latest, bioc: 'release'}
- { os: ubuntu-latest, bioc: 'release'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
CRAN: ${{ matrix.config.cran }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Check out repo
uses: actions/checkout@v3

- name: Set up R and install BiocManager
uses: grimbough/bioc-actions/setup-bioc@v1
with:
bioc-version: ${{ matrix.config.bioc }}

- name: Install basilisk
run: |
BiocManager::install(c('basilisk'))
shell: Rscript {0}

- name: Test basiliskStart
run: |
basilisk::setBasiliskForceFallback(TRUE)
tmploc <- file.path(tempdir(), "my_package_A")
if (!file.exists(tmploc)) {
setupBasiliskEnv(tmploc, c('pandas=1.4.3'))
}
cl <- basiliskStart(tmploc, testload="pandas")
cl
.libPaths()
sessionInfo()
shell: Rscript {0}

0 comments on commit edc354d

Please sign in to comment.