Skip to content

Commit

Permalink
Add optional testing requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ronald-jaepel committed Mar 22, 2024
1 parent b94e0d1 commit 6b83b12
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
jobs:
test-job:
runs-on: ubuntu-latest

defaults:
run:
shell: bash -l {0}

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
Expand All @@ -26,22 +31,21 @@ jobs:
with:
miniforge-variant: Mambaforge
use-mamba: true
activate-environment: cadet-process
activate-environment: cadet-python
channels: conda-forge,

- name: Cache conda
uses: actions/cache@v3
env:
# Increase this value to reset cache if environment.yml has not changed
CACHE_NUMBER: 0
CACHE_NUMBER: 1
with:
path: ${{ env.CONDA }}/envs
key: python_${{ matrix.python-version }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}

- name: Test Wheel install and import
run: |
mamba create -n testing python==${{ matrix.python-version }}
conda activate testing
mamba install python==${{ matrix.python-version }}
pip install wheel
which pip
which mamba
Expand Down

0 comments on commit 6b83b12

Please sign in to comment.