39
39
env :
40
40
GH_TOKEN : ${{ github.token }}
41
41
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
-
54
42
- name : Create conda environment files
55
43
run : ./bootstrap-conda
56
44
@@ -61,27 +49,11 @@ jobs:
61
49
key :
62
50
${{ runner.os }}-conda-${{ hashFiles('src/environment-3.11.yml') }}
63
51
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
-
80
52
- name : Setup Conda environment
81
53
uses : conda-incubator/setup-miniconda@v2
82
54
with :
83
55
python-version : ${{ matrix.python }}
84
- # mamba -version: "*"
56
+ miniforge -version : latest
85
57
use-mamba : true
86
58
channels : conda-forge
87
59
channel-priority : true
0 commit comments