Replace conda with mamba
@@ -25,7 +25,11 @@ jobs:
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
- miniconda-version: latest
+ miniforge-variant: Mambaforge
+ miniforge-version: latest
+ use-mamba: true
+ channels: conda-forge,defaults
+ channel-priority: true
python-version: ${{ matrix.python-version }}
environment-file: continuous_integration/environment-${{ matrix.python-version }}.yaml
activate-environment: dask-distributed
@@ -35,7 +39,7 @@ jobs:
shell: bash -l {0}
# stacktrace for Python 3.8 has not been released at the moment of writing
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version < '3.8' }}
- run: conda install -c conda-forge -c defaults -c numba libunwind stacktrace
+ run: mamba install -c conda-forge -c defaults -c numba libunwind stacktrace
- name: Cythonize
shell: bash -l {0}
@@ -46,15 +50,15 @@ jobs:
shell: bash -l {0}
run: python -m pip install --no-deps -e .
- - name: conda list
+ - name: mamba list
shell: bash -l {0}
- run: conda list
+ run: mamba list
- - name: conda env export
+ - name: mamba env export
shell: bash -l {0}
run: |
- echo -e "--\n--Conda Environment (re-create this with \`conda env create --name <name> -f <output_file>\`)\n--"
- conda env export | grep -E -v '^prefix:.*$'
+ echo -e "--\n--Conda Environment (re-create this with \`mamba env create --name <name> -f <output_file>\`)\n--"
+ mamba env export | grep -E -v '^prefix:.*$'
- name: Setup SSH
shell: bash -l {0}
