diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a0e841d2bf5..3f55d313c2c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,7 +34,7 @@ jobs: runs-on: ${{ matrix.os }} defaults: run: - shell: bash -e {0} + shell: bash -el {0} env: PYTHON_VERSION: '${{ matrix.python }}' MKL_NUM_THREADS: '1' @@ -83,14 +83,11 @@ jobs: python-version: ${{ matrix.python }} if: startswith(matrix.kind, 'pip') # Python (if conda) - - uses: conda-incubator/setup-miniconda@v2 + - uses: mamba-org/setup-micromamba@v2 with: - activate-environment: ${{ env.CONDA_ACTIVATE_ENV }} - python-version: ${{ env.PYTHON_VERSION }} + create-args: >- + python=${{ env.PYTHON_VERSION }} environment-file: ${{ env.CONDA_ENV }} - miniforge-version: latest - miniforge-variant: Mambaforge - use-mamba: ${{ matrix.kind != 'conda' }} if: ${{ !startswith(matrix.kind, 'pip') }} - name: 'Install OSMesa VTK variant' run: | diff --git a/tools/github_actions_dependencies.sh b/tools/github_actions_dependencies.sh index 44bb1cd6635..8c8d19a4ea2 100755 --- a/tools/github_actions_dependencies.sh +++ b/tools/github_actions_dependencies.sh @@ -4,7 +4,7 @@ STD_ARGS="--progress-bar off --upgrade" EXTRA_ARGS="" if [ ! -z "$CONDA_ENV" ]; then echo "Uninstalling MNE for CONDA_ENV=${CONDA_ENV}" - conda remove -c conda-forge --force -yq mne + mamba remove -c conda-forge --force -yq mne elif [ ! -z "$CONDA_DEPENDENCIES" ]; then echo "Using Mamba to install CONDA_DEPENDENCIES=${CONDA_DEPENDENCIES}" mamba install -y $CONDA_DEPENDENCIES