Skip to content

Commit

Permalink
Add conda to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarez5341 authored Jan 15, 2025
1 parent ec53ba0 commit e881766
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: install

on:
push:
pull_request:

jobs:
test:
name: test ${{ matrix.py }} - ${{ matrix.os }}
name: test ${{ matrix.py }} - ${{ matrix.os }} - ${{ matrix.env }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -17,13 +18,31 @@ jobs:
- "3.11"
- "3.10"
- "3.9"
env:
- pip
- conda
steps:
- name: Setup python for test ${{ matrix.py }}
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Conda or pip
if: matrix.env == 'conda'
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.py }}
activate-environment: test-env
environment-file: environment.yml
auto-update-conda: true

- name: Setup Python for pip
if: matrix.env == 'pip'
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
- uses: actions/checkout@v3

- name: Upgrade pip
if: matrix.env == 'pip'
run: python -m pip install -U pip

- name: Install pufferlib
run: pip3 install -e .
run: pip install -e .

0 comments on commit e881766

Please sign in to comment.