diff --git a/.github/workflows/python-ci.yaml b/.github/workflows/python-ci.yaml index 887c901..1de8085 100644 --- a/.github/workflows/python-ci.yaml +++ b/.github/workflows/python-ci.yaml @@ -23,44 +23,31 @@ 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: Verify Micromamba Installation run: | $HOME/micromamba/micromamba --version - env: - MAMBA_ROOT_PREFIX: $HOME/micromamba - name: Create environment run: | - $HOME/micromamba/micromamba create --name just-agents -y -c conda-forge python=${{ matrix.python-version }} + $HOME/micromamba/micromamba create --root-prefix $HOME/micromamba --name just-agents -y -c conda-forge python=${{ matrix.python-version }} $HOME/micromamba/micromamba env list - env: - MAMBA_ROOT_PREFIX: $HOME/micromamba - name: Install dependencies run: | - $HOME/micromamba/micromamba install -n just-agents -f environment.yaml -y -c conda-forge - env: - MAMBA_ROOT_PREFIX: $HOME/micromamba + $HOME/micromamba/micromamba install --root-prefix $HOME/micromamba -n just-agents -f environment.yaml -y -c conda-forge - name: Set up Micromamba environment run: | echo "$HOME/micromamba/bin:$HOME/micromamba/envs/just-agents/bin" >> $GITHUB_PATH - echo "MAMBA_ROOT_PREFIX=$HOME/micromamba" >> $GITHUB_ENV - name: Verify environment creation run: | $HOME/micromamba/micromamba env list ls -al $HOME/micromamba/envs/just-agents - env: - MAMBA_ROOT_PREFIX: $HOME/micromamba - name: Run tests run: | $HOME/micromamba/micromamba run -n just-agents which python $HOME/micromamba/micromamba run -n just-agents which pytest $HOME/micromamba/micromamba run -n just-agents pytest - env: - MAMBA_ROOT_PREFIX: $HOME/micromamba