Skip to content

Commit edbb8a7

Browse files
authored
try with miniforge
1 parent 338b668 commit edbb8a7

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

.github/workflows/ci-conda.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@ jobs:
3939
env:
4040
GH_TOKEN: ${{ github.token }}
4141

42-
- name: Check for Miniconda
43-
id: check_conda
44-
run: echo ::set-output name=installed::$CONDA
45-
46-
# Miniconda is installed by default in the ubuntu-latest, however not in the act-image to run it locally
47-
- name: Install Miniconda
48-
if: steps.check_conda.outputs.installed == ''
49-
run: |
50-
wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh -O ~/miniconda.sh
51-
bash ~/miniconda.sh -b -p $HOME/miniconda
52-
echo "CONDA=$HOME/miniconda" >> $GITHUB_ENV
53-
5442
- name: Create conda environment files
5543
run: ./bootstrap-conda
5644

@@ -61,27 +49,11 @@ jobs:
6149
key:
6250
${{ runner.os }}-conda-${{ hashFiles('src/environment-3.11.yml') }}
6351

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
68-
- 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-
conda install -c conda-forge mamba
79-
8052
- name: Setup Conda environment
8153
uses: conda-incubator/setup-miniconda@v2
8254
with:
8355
python-version: ${{ matrix.python }}
84-
#mamba-version: "*"
56+
miniforge-version: latest
8557
use-mamba: true
8658
channels: conda-forge
8759
channel-priority: true

0 commit comments

Comments
 (0)