one more config fix for CI #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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 | |
env: | |
MAMBA_ROOT_PREFIX: /usr/local/micromamba | |
- name: Set up Micromamba environment | |
run: echo "MICROMAMBA_ROOT_PREFIX=/usr/local/micromamba" >> $GITHUB_ENV | |
shell: bash | |
- 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 |