Skip to content

Commit 16f0220

Browse files
committed
fix setup mamba
1 parent 7a2f1ff commit 16f0220

File tree

1 file changed

+38
-19
lines changed

1 file changed

+38
-19
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,27 @@ jobs:
2525
python_version: ['3.8', '3.9', '3.10', '3.11']
2626

2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2929

30-
- name: Setup mamba
31-
uses: conda-incubator/setup-miniconda@v2
30+
- name: Install Conda environment with Micromamba
31+
uses: mamba-org/setup-micromamba@v1
3232
with:
33-
miniforge-variant: Mambaforge
34-
channels: conda-forge
35-
36-
- name: Create the conda environment
37-
shell: bash -l {0}
38-
run: mamba install -q python=${{ matrix.python_version }} pip jupyterlab_pygments==0.1.0 pytest-cov pytest-rerunfailures nodejs=18 yarn=3 ipywidgets matplotlib xeus-cling "traitlets>=5.0.3,<6" ipykernel
33+
micromamba-version: '1.5.5-0'
34+
environment-name: base
35+
create-args: >-
36+
python=${{ matrix.python_version }}
37+
pip
38+
jupyterlab_pygments=0.1.0
39+
pytest-cov
40+
pytest-rerunfailures
41+
nodejs=18
42+
yarn=3
43+
ipywidgets
44+
matplotlib
45+
xeus-cling
46+
"traitlets>=5.0.3,<6"
47+
ipykernel
48+
pyzmq=25.1.0
3949
4050
- name: Install dependencies
4151
shell: bash -l {0}
@@ -78,18 +88,27 @@ jobs:
7888
python_version: ['3.8', '3.9', '3.10', '3.11']
7989

8090
steps:
81-
- uses: actions/checkout@v2
91+
- uses: actions/checkout@v4
8292

83-
- name: Setup mamba
84-
uses: conda-incubator/setup-miniconda@v2
93+
- name: Install Conda environment with Micromamba
94+
uses: mamba-org/setup-micromamba@v1
8595
with:
86-
miniforge-variant: Mambaforge
87-
channels: conda-forge
88-
89-
- name: Create the conda environment
90-
shell: bash -l {0}
91-
# TODO unpin pyzmq
92-
run: mamba install -q python=${{ matrix.python_version }} pip jupyterlab_pygments==0.1.0 pytest-cov pytest-rerunfailures nodejs=18 yarn=3 ipywidgets matplotlib xeus-cling "traitlets>=5.0.3,<6" ipykernel pyzmq==25.1.0
96+
micromamba-version: '1.5.5-0'
97+
environment-name: base
98+
create-args: >-
99+
python=${{ matrix.python_version }}
100+
pip
101+
jupyterlab_pygments=0.1.0
102+
pytest-cov
103+
pytest-rerunfailures
104+
nodejs=18
105+
yarn=3
106+
ipywidgets
107+
matplotlib
108+
xeus-cling
109+
"traitlets>=5.0.3,<6"
110+
ipykernel
111+
pyzmq=25.1.0
93112
94113
- name: Install dependencies
95114
shell: bash -l {0}

0 commit comments

Comments
 (0)