Skip to content

Commit 7b78de4

Browse files
authored
Merge pull request #993 from xylar/fix-ci
Update CI to drop mamba
2 parents 97ab426 + 3562c41 commit 7b78de4

2 files changed

Lines changed: 19 additions & 26 deletions

File tree

azure-pipelines.yml

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
vmImage: 'ubuntu-latest'
2222
strategy:
2323
matrix:
24-
Python39:
25-
python.version: '3.9'
2624
Python310:
2725
python.version: '3.10'
2826
Python311:
2927
python.version: '3.11'
28+
Python312:
29+
python.version: '3.12'
3030

3131
steps:
3232
- bash: echo "##vso[task.prependpath]$CONDA/bin"
@@ -37,27 +37,22 @@ jobs:
3737
eval "$(conda shell.bash hook)"
3838
conda config --add channels conda-forge
3939
conda config --set channel_priority strict
40-
conda update --yes --all
41-
conda install --yes mamba
42-
# workaround based on recent failures
43-
rm /usr/share/miniconda/pkgs/cache/*.json
44-
mamba install --yes conda-build boa
45-
displayName: Update conda base environment
40+
conda create --yes --name build_env conda-build
41+
displayName: Create build environment
4642
4743
- bash: |
4844
set -e
4945
eval "$(conda shell.bash hook)"
50-
conda activate
51-
# workaround based on recent failures
52-
rm /usr/share/miniconda/pkgs/cache/*.json
53-
conda mambabuild -m "ci/python${PYTHON_VERSION}.yaml" "ci/recipe"
46+
conda activate build_env
47+
conda build -m "ci/python${PYTHON_VERSION}.yaml" "ci/recipe"
5448
displayName: Build MPAS-Analysis
5549
5650
- bash: |
5751
set -e
5852
eval "$(conda shell.bash hook)"
5953
conda activate
60-
mamba create --yes --quiet --name mpas -c ${CONDA_PREFIX}/conda-bld/ \
54+
conda create --yes --quiet --name mpas \
55+
-c ${CONDA_PREFIX}/envs/build_env/conda-bld/ \
6156
python=$PYTHON_VERSION mpas-analysis pytest
6257
displayName: Create Anaconda mpas environment
6358
@@ -72,7 +67,8 @@ jobs:
7267
set -e
7368
eval "$(conda shell.bash hook)"
7469
conda activate
75-
mamba create --yes --quiet --name docs -c ${CONDA_PREFIX}/conda-bld/ \
70+
conda create --yes --quiet --name docs \
71+
-c ${CONDA_PREFIX}/envs/build_env/conda-bld/ \
7672
python=$PYTHON_VERSION mpas-analysis sphinx mock sphinx_rtd_theme \
7773
tabulate "m2r2>=0.3.3" "mistune<2"
7874
condition: eq(variables['python.version'], '3.10')
@@ -151,7 +147,7 @@ jobs:
151147
strategy:
152148
matrix:
153149
Python310:
154-
python.version: '3.10'
150+
python.version: '3.11'
155151

156152
steps:
157153
- bash: echo "##vso[task.prependpath]$CONDA/bin"
@@ -162,28 +158,25 @@ jobs:
162158
eval "$(conda shell.bash hook)"
163159
conda config --add channels conda-forge
164160
conda config --set channel_priority strict
165-
conda update --yes --all
166-
conda install --yes mamba
167-
# workaround based on recent failures
168-
rm /usr/share/miniconda/pkgs/cache/*.json
169-
mamba install --yes conda-build boa
170-
displayName: Update conda base environment
161+
conda create --yes --name build_env conda-build
162+
displayName: Create build environment
171163
172164
- bash: |
173165
set -e
174166
eval "$(conda shell.bash hook)"
175-
conda activate
167+
conda activate build_env
176168
# workaround based on recent failures
177169
rm /usr/share/miniconda/pkgs/cache/*.json
178-
conda mambabuild -m "ci/python${PYTHON_VERSION}.yaml" "ci/recipe"
170+
conda build -m "ci/python${PYTHON_VERSION}.yaml" "ci/recipe"
179171
displayName: Build MPAS-Analysis
180172
181173
- bash: |
182174
set -e
183175
eval "$(conda shell.bash hook)"
184176
conda activate
185-
mamba create --yes --quiet --name mpas -c ${CONDA_PREFIX}/conda-bld/ \
186-
python=$PYTHON_VERSION mpas-analysis pytest
177+
conda create --yes --quiet --name mpas \
178+
-c ${CONDA_PREFIX}/envs/build_env/conda-bld/ \
179+
python=$PYTHON_VERSION mpas-analysis pytest
187180
conda activate mpas
188181
pip install git+https://github.com/pydata/xarray.git
189182
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ pin_run_as_build:
55
min_pin: x.x
66
max_pin: x.x
77
python:
8-
- 3.9.* *_cpython
8+
- 3.12.* *_cpython

0 commit comments

Comments
 (0)