Skip to content

Commit e1ed761

Browse files
authored
Fix mamba install in conda ci workflow
1 parent b7c1c8f commit e1ed761

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci-conda.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,22 @@ jobs:
6161
key:
6262
${{ runner.os }}-conda-${{ hashFiles('src/environment-3.11.yml') }}
6363

64+
# Mamba currently has problems with dependencies installed from other channels
65+
# https://github.com/libarchive/libarchive/issues/1857
66+
# https://github.com/conda-incubator/setup-miniconda/issues/292
67+
# As temporary workaround we move all preinstalled packages over to conda-forge before installing mamba
6468
- name: Setup Conda
69+
uses: conda-incubator/setup-miniconda@v2
70+
with:
71+
python-version: ${{ matrix.python }}
72+
channels: conda-forge
73+
channel-priority: true
74+
75+
- name: Fix mamba
76+
run: |
77+
conda upgrade --strict-channel-priority -c conda-forge --all
78+
79+
- name: Setup Conda environment
6580
uses: conda-incubator/setup-miniconda@v2
6681
with:
6782
python-version: ${{ matrix.python }}

0 commit comments

Comments
 (0)