Update README #261
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: conda_build | |
on: | |
push: | |
branches: [master, development] | |
pull_request: | |
branches: [master, development] | |
env: | |
CACHE_NUMBER: 0 | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
label: linux-64 | |
prefix: /home/runner/miniconda3/envs/bc_builds | |
- os: macos-13 | |
label: osx-64 | |
prefix: /Users/runner/miniconda3/envs/bc_builds | |
name: ${{ matrix.label }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Miniforge | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-variant: Miniforge3 | |
miniforge-version: latest | |
activate-environment: bc_builds | |
use-mamba: true | |
- name: Ensure Python 3.11 is installed in base environment | |
run: mamba install --name base python=3.11 | |
- name: Update Conda and Mamba | |
run: | | |
mamba install --name base conda=23.5.2 | |
- name: Update beyondcell environment | |
run: mamba update -n bc_builds -f helpers/mambabuild.yml | |
- name: Install beyondcell package | |
shell: bash -l {0} | |
run: | | |
conda activate bc_builds | |
mamba install boa -y | |
mamba mambabuild ./.github/workflows/r-beyondcell | |
mamba install --use-local r-beyondcell | |
- name: Test beyondcell | |
shell: bash -l {0} | |
run: | | |
conda activate bc_builds | |
mamba install -c conda-forge r-hdf5r | |
mamba install -c conda-forge r-devtools | |
Rscript --vanilla ./.github/workflows/helpers/call_tests.R | |
- name: Archive package test results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-report | |
path: test_summary.txt | |
- name: Archive beyondcell package for GNU/Linux | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Linux_r-beyondcell-v2.2.2 | |
path: /home/runner/miniconda3/envs/bc_builds/conda-bld/linux-64/r-beyondcell-2.2.2-r43_0.tar.bz2 | |
- name: Archive beyondcell package for macOS | |
uses: actions/upload-artifact@v3 | |
with: | |
name: macOS_r-beyondcell-v2.2.2 | |
path: /Users/runner/miniconda3/envs/bc_builds/conda-bld/osx-64/r-beyondcell-2.2.2-r43_0.tar.bz2 |