Skip to content

Commit 8502af9

Browse files
rossbarMridulS
andauthored
Try mambaforge (#391)
* try mamba forge in CI. * Modify windows and macos workflows too. * explicit call to mamba, test with ubuntu CI * revert to conda to activate env * update windows and MacOS CI to use mamba for env setup Co-authored-by: Mridul Seth <seth.mridul@gmail.com>
1 parent abfb0df commit 8502af9

File tree

3 files changed

+24
-12
lines changed

3 files changed

+24
-12
lines changed

.github/workflows/conda-macos.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ jobs:
1414
python-version: [3.8, 3.9, "3.10"]
1515
steps:
1616

17-
- uses: conda-incubator/setup-miniconda@v2
17+
- name: Setup conda with mambaforge
18+
uses: conda-incubator/setup-miniconda@v2
1819
with:
1920
auto-update-conda: true
21+
miniforge-variant: Mambaforge
22+
miniforge-version: latest
23+
use-mamba: true
2024
python-version: ${{ matrix.python-version }}
2125

2226
- name: Conda info
@@ -30,8 +34,8 @@ jobs:
3034
- name: Install and Test
3135
shell: bash -l {0}
3236
run: |
33-
conda create -n pgv-testenv python=${{ matrix.python-version }}
37+
mamba create -n pgv-testenv python=${{ matrix.python-version }}
3438
conda activate pgv-testenv
35-
conda install --channel conda-forge pygraphviz
36-
conda install --channel conda-forge pytest
39+
mamba install --channel conda-forge pygraphviz
40+
mamba install --channel conda-forge pytest
3741
pytest --pyargs pygraphviz

.github/workflows/conda-ubuntu.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ jobs:
1414
python-version: [3.8, 3.9, "3.10"]
1515
steps:
1616

17-
- uses: conda-incubator/setup-miniconda@v2
17+
- name: Setup conda with mambaforge
18+
uses: conda-incubator/setup-miniconda@v2
1819
with:
1920
auto-update-conda: true
21+
miniforge-variant: Mambaforge
22+
miniforge-version: latest
23+
use-mamba: true
2024
python-version: ${{ matrix.python-version }}
2125

2226
- name: Conda info
@@ -30,8 +34,8 @@ jobs:
3034
- name: Install and Test
3135
shell: bash -l {0}
3236
run: |
33-
conda create -n pgv-testenv python=${{ matrix.python-version }}
37+
mamba create -n pgv-testenv python=${{ matrix.python-version }}
3438
conda activate pgv-testenv
35-
conda install --channel conda-forge pygraphviz
36-
conda install --channel conda-forge pytest
39+
mamba install --channel conda-forge pygraphviz
40+
mamba install --channel conda-forge pytest
3741
pytest --pyargs pygraphviz

.github/workflows/conda-windows.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ jobs:
1414
python-version: [3.8, 3.9, "3.10"]
1515
steps:
1616

17-
- uses: conda-incubator/setup-miniconda@v2
17+
- name: Setup conda with mambaforge
18+
uses: conda-incubator/setup-miniconda@v2
1819
with:
1920
auto-update-conda: true
21+
miniforge-variant: Mambaforge
22+
miniforge-version: latest
23+
use-mamba: true
2024
python-version: ${{ matrix.python-version }}
2125

2226
- name: Conda info
@@ -30,8 +34,8 @@ jobs:
3034
- name: Install and Test
3135
shell: bash -l {0}
3236
run: |
33-
conda create -n pgv-testenv python=${{ matrix.python-version }}
37+
mamba create -n pgv-testenv python=${{ matrix.python-version }}
3438
conda activate pgv-testenv
35-
conda install --channel conda-forge pygraphviz
36-
conda install --channel conda-forge pytest
39+
mamba install --channel conda-forge pygraphviz
40+
mamba install --channel conda-forge pytest
3741
pytest --pyargs pygraphviz

0 commit comments

Comments
 (0)