Skip to content

fixing CI again

fixing CI again #6

Workflow file for this run

name: Python CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Install Micromamba
run: |
sudo apt-get update
sudo apt-get install -y curl
mkdir -p $HOME/micromamba
curl -L https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj -C $HOME/micromamba --strip-components=1 bin/micromamba
- name: Create environment
run: |
$HOME/micromamba/micromamba create --name test-env python=${{ matrix.python-version }} -y -c conda-forge
$HOME/micromamba/micromamba install -n test-env -f environment.yaml -y -c conda-forge
- name: Set up Micromamba environment
run: echo "$HOME/micromamba/bin:$HOME/micromamba/envs/test-env/bin" >> $GITHUB_PATH
- name: Run tests
run: micromamba run -n test-env pytest