From edc354d0aed31d6a1b011ace97d7a6c7e2545dad Mon Sep 17 00:00:00 2001 From: mbstadler Date: Thu, 2 Nov 2023 16:48:46 +0100 Subject: [PATCH] setup GHA --- .../test-basiliskStart-fallback.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/test-basiliskStart-fallback.yaml diff --git a/.github/workflows/test-basiliskStart-fallback.yaml b/.github/workflows/test-basiliskStart-fallback.yaml new file mode 100644 index 0000000..24b1dca --- /dev/null +++ b/.github/workflows/test-basiliskStart-fallback.yaml @@ -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}