Skip to content

Commit

Permalink
fixing CI again
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Kulaga committed Jun 4, 2024
1 parent c2b0c35 commit 3b79ae5
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/python-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,14 @@ jobs:
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
env:
MAMBA_ROOT_PREFIX: $HOME/micromamba
- name: Create environment
run: |
$HOME/micromamba/micromamba create --name test-env -f environment.yaml -y -c conda-forge
env:
MAMBA_ROOT_PREFIX: $HOME/micromamba
$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 "MAMBA_ROOT_PREFIX=$HOME/micromamba" >> $GITHUB_ENV

- name: Install dependencies
run: $HOME/micromamba/micromamba install -n test-env -f environment.yaml -y -c conda-forge
run: echo "$HOME/micromamba/bin:$HOME/micromamba/envs/test-env/bin" >> $GITHUB_PATH

- name: Run tests
run: $HOME/micromamba/micromamba run -n test-env pytest
run: micromamba run -n test-env pytest

0 comments on commit 3b79ae5

Please sign in to comment.