Skip to content

Commit e6574c4

Browse files
committed
CI: switch to micromamba, update xeus
1 parent 065a58a commit e6574c4

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

.github/workflows/CI.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,36 @@ jobs:
2626
with:
2727
fetch-depth: 0
2828

29-
- name: Cache conda
30-
uses: actions/cache@v3
31-
env:
32-
CACHE_NUMBER: 0
33-
with:
34-
path: ~/conda_pkgs_dir
35-
key:
36-
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/environment.yml') }}
37-
38-
- uses: conda-incubator/setup-miniconda@v2
29+
# - name: Cache conda
30+
# uses: actions/cache@v3
31+
# env:
32+
# CACHE_NUMBER: 0
33+
# with:
34+
# path: ~/conda_pkgs_dir
35+
# key:
36+
# ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/environment.yml') }}
37+
38+
- uses: mamba-org/setup-[email protected]
3939
with:
40-
miniconda-version: "latest"
41-
auto-update-conda: true
4240
environment-file: ci/environment.yml
43-
python-version: ${{ matrix.python-version }}
44-
use-only-tar-bz2: true
41+
create-args: >-
42+
python=${{ matrix.python-version }}
4543
4644
- name: Install Windows Conda Packages
4745
if: contains(matrix.os, 'windows')
4846
shell: bash -e -l {0}
49-
run: conda install m2-bison=3.0.4 cmake=3.21.1
47+
run: micromamba install m2-bison=3.0.4 m2-filesystem cmake=3.21.1
5048

5149
- name: Install Linux / macOS Conda Packages
5250
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
5351
shell: bash -e -l {0}
54-
run: conda install bison=3.4 nodejs=18
52+
run: micromamba install bison=3.4 nodejs=18
5553

56-
- name: Conda info
57-
shell: bash -e -l {0}
58-
run: |
59-
conda info
60-
conda list
54+
# - name: Conda info
55+
# shell: bash -e -l {0}
56+
# run: |
57+
# conda info
58+
# conda list
6159

6260
- name: Setup Platform (Linux)
6361
if: contains(matrix.os, 'ubuntu')
@@ -87,9 +85,9 @@ jobs:
8785
if: contains(matrix.os, 'windows')
8886
shell: cmd
8987
run: |
90-
set CONDA_INSTALL_LOCN=C:\\Miniconda3
91-
call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
92-
call conda activate test
88+
set MAMBA_INSTALL_LOCN=C:\\Users\runneradmin\micromamba
89+
call %MAMBA_INSTALL_LOCN%\Scripts\activate.bat
90+
call micromamba activate test
9391
set LFORTRAN_CMAKE_GENERATOR=Ninja
9492
set WIN=1
9593
set MACOS=0

ci/environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ dependencies:
77
- toml
88
- pytest
99
- jupyter
10-
- xeus=1.0.1
10+
- xeus=5.1.0
11+
- xeus-zmq=3.0.0
1112
- xtl
1213
- nlohmann_json
1314
- cppzmq

0 commit comments

Comments
 (0)