Skip to content

Commit

Permalink
Update CI to drop mamba
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Mar 14, 2024
1 parent 97ab426 commit 0a6afdc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python39:
python.version: '3.9'
Python310:
python.version: '3.10'
Python311:
python.version: '3.11'
Python312:
python.version: '3.12'

steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
Expand All @@ -37,27 +37,21 @@ jobs:
eval "$(conda shell.bash hook)"
conda config --add channels conda-forge
conda config --set channel_priority strict
conda update --yes --all
conda install --yes mamba
# workaround based on recent failures
rm /usr/share/miniconda/pkgs/cache/*.json
mamba install --yes conda-build boa
displayName: Update conda base environment
conda create --yes --name build_env conda-build
displayName: Create build environment
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate
# workaround based on recent failures
rm /usr/share/miniconda/pkgs/cache/*.json
conda mambabuild -m "ci/python${PYTHON_VERSION}.yaml" "ci/recipe"
conda activate build_env
conda build -m "ci/python${PYTHON_VERSION}.yaml" "ci/recipe"
displayName: Build MPAS-Analysis
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate
mamba create --yes --quiet --name mpas -c ${CONDA_PREFIX}/conda-bld/ \
conda create --yes --quiet --name mpas --use-local \
python=$PYTHON_VERSION mpas-analysis pytest
displayName: Create Anaconda mpas environment
Expand All @@ -72,7 +66,7 @@ jobs:
set -e
eval "$(conda shell.bash hook)"
conda activate
mamba create --yes --quiet --name docs -c ${CONDA_PREFIX}/conda-bld/ \
conda create --yes --quiet --name docs --use-local \
python=$PYTHON_VERSION mpas-analysis sphinx mock sphinx_rtd_theme \
tabulate "m2r2>=0.3.3" "mistune<2"
condition: eq(variables['python.version'], '3.10')
Expand Down Expand Up @@ -151,7 +145,7 @@ jobs:
strategy:
matrix:
Python310:
python.version: '3.10'
python.version: '3.11'

steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
Expand All @@ -162,27 +156,23 @@ jobs:
eval "$(conda shell.bash hook)"
conda config --add channels conda-forge
conda config --set channel_priority strict
conda update --yes --all
conda install --yes mamba
# workaround based on recent failures
rm /usr/share/miniconda/pkgs/cache/*.json
mamba install --yes conda-build boa
displayName: Update conda base environment
conda create --yes --name build_env conda-build
displayName: Create build environment
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate
conda activate build_env
# workaround based on recent failures
rm /usr/share/miniconda/pkgs/cache/*.json
conda mambabuild -m "ci/python${PYTHON_VERSION}.yaml" "ci/recipe"
conda build -m "ci/python${PYTHON_VERSION}.yaml" "ci/recipe"
displayName: Build MPAS-Analysis
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate
mamba create --yes --quiet --name mpas -c ${CONDA_PREFIX}/conda-bld/ \
conda create --yes --quiet --name mpas --use-local \
python=$PYTHON_VERSION mpas-analysis pytest
conda activate mpas
pip install git+https://github.com/pydata/xarray.git
Expand Down
File renamed without changes.

0 comments on commit 0a6afdc

Please sign in to comment.