Skip to content

Commit

Permalink
MAINT: Use mamba in CIs (#11471)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel McCloy <[email protected]>
  • Loading branch information
larsoner and drammock authored Feb 21, 2023
1 parent dfdc5a6 commit c93c848
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/compat_minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
name: 'Setup conda'
miniforge-version: latest
miniforge-variant: Mambaforge
use-mamba: true
- shell: bash -el {0}
run: |
./tools/github_actions_dependencies.sh
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/compat_old.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
name: 'Setup conda'
miniforge-version: latest
miniforge-variant: Mambaforge
use-mamba: true
- shell: bash -el {0}
run: |
./tools/github_actions_dependencies.sh
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/linux_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
activate-environment: 'mne'
python-version: ${{ env.PYTHON_VERSION }}
environment-file: ${{ env.CONDA_ENV }}
name: 'Setup conda'
# No mamba for this one job (use conda itself!)
- shell: bash -el {0}
run: |
./tools/github_actions_dependencies.sh
Expand Down Expand Up @@ -89,7 +89,9 @@ jobs:
activate-environment: 'mne'
python-version: ${{ env.PYTHON_VERSION }}
environment-file: ${{ env.CONDA_ENV }}
name: 'Setup conda'
miniforge-version: latest
miniforge-variant: Mambaforge
use-mamba: true
- shell: bash -el {0}
run: |
conda install -c conda-forge "vtk>=9.2=*osmesa*"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/macos_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
activate-environment: 'mne'
python-version: ${{ env.PYTHON_VERSION }}
environment-file: ${{ env.CONDA_ENV }}
name: 'Setup conda'
miniforge-version: latest
miniforge-variant: Mambaforge
use-mamba: true
- shell: bash -el {0}
run: |
./tools/github_actions_dependencies.sh
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ dependencies:
- eeglabio
- edflib-python
- pybv
- mamba
2 changes: 1 addition & 1 deletion tools/github_actions_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ EXTRA_ARGS=""
if [ ! -z "$CONDA_ENV" ]; then
pip uninstall -yq mne
elif [ ! -z "$CONDA_DEPENDENCIES" ]; then
conda install -y $CONDA_DEPENDENCIES
mamba install -y $CONDA_DEPENDENCIES
else
# Changes here should also go in the interactive_test CircleCI job
python -m pip install $STD_ARGS pip setuptools wheel
Expand Down

0 comments on commit c93c848

Please sign in to comment.