Skip to content

Commit

Permalink
⚗️ Try conda-pack pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Jun 19, 2024
1 parent 3e29c80 commit a019497
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/conda-pack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build conda environments

on: [push]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: wake
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash -el {0}
run: |
python -m pip install .
conda install -c conda-forge conda-pack -y
- name: Pack conda environment
shell: bash -el {0}
run: |
conda-pack -n wake -o wake-${{ runner.os }}-${{ runner.arch }}-${{ matrix.python-version }}.tar.gz
- name: Upload conda environment
uses: actions/upload-artifact@v2
with:
name: wake-${{ runner.os }}-${{ runner.arch }}-${{ matrix.python-version }}
path: wake-${{ runner.os }}-${{ runner.arch }}-${{ matrix.python-version }}.tar.gz

0 comments on commit a019497

Please sign in to comment.