Skip to content

fix workflows

fix workflows #2

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@v2
- name: Install Micromamba
run: |
sudo apt-get update
sudo apt-get install -y curl
curl -L https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj -C /usr/local/bin --strip-components=1 bin/micromamba
- name: Create environment
run: |
micromamba create --name test-env -f environment.yaml -y -c conda-forge
echo "micromamba activate test-env" >> $GITHUB_ENV
- name: Install dependencies
run: micromamba run -n test-env micromamba install -y -f environment.yaml -c conda-forge
- name: Run tests
run: micromamba run -n test-env pytest