Skip to content

Commit

Permalink
GHA: Use miniforge3 for conda env creation
Browse files Browse the repository at this point in the history
- Installing and setting up mamba is failing, and is marked experimental.
- It seems simpler and achieves the same thing.
- Conda 23.10+ uses the same solver, so performance should be similar if we
  were to switch to the conda cli.
  • Loading branch information
omad committed Sep 30, 2024
1 parent ea04613 commit a913746
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,16 @@ jobs:
- uses: conda-incubator/setup-miniconda@v3
if: steps.conda_cache.outputs.cache-hit != 'true'
with:
channels: conda-forge
channel-priority: true
miniforge-version: latest
activate-environment: ""
mamba-version: "*"
use-mamba: true

- name: Dump Conda Environment Info
shell: bash -l {0}
if: steps.conda_cache.outputs.cache-hit != 'true'
run: |
conda info
conda list
mamba -V
mamba --version
conda config --show-sources
conda config --show
printenv | sort
Expand Down Expand Up @@ -187,7 +184,6 @@ jobs:
id: conda_cache
with:
path: /tmp/test_env

key: ${{ runner.os }}-test-env-py310-${{ hashFiles('tests/test-env-py310.yml') }}

- name: Update PATH
Expand Down

0 comments on commit a913746

Please sign in to comment.