@@ -18,29 +18,35 @@ jobs:
1818 exclude :
1919 - os : macos-latest
2020 platform : x32
21+ fail-fast : false
22+
2123 steps :
22- - uses : actions/checkout@v2
24+ - uses : actions/checkout@v3
2325
24- - name : Setup Conda
25- uses : s-weigand/setup-conda@v1
26+ - name : Setup Micromamba
27+ uses : mamba-org/provision-with-micromamba@v13
2628 with :
27- activate-conda : false
28- conda-channels : conda-forge
29+ environment-file : false
2930
3031 - name : Python ${{ matrix.python-version }}
3132 shell : bash -l {0}
3233 run : |
33- conda create --name TEST python=${{ matrix.python-version }} numpy cython pip pytest hdf5 libnetcdf cftime --strict- channel-priority
34- source activate TEST
34+ micromamba create --name TEST python=${{ matrix.python-version }} numpy cython pip pytest hdf5 libnetcdf cftime zlib -- channel conda-forge
35+ micromamba activate TEST
3536 export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH" # so setup.py finds nc-config
3637 pip install -e . --no-deps --force-reinstall
37- conda info --all
38- conda list
38+
39+ - name : Debug conda
40+ shell : bash -l {0}
41+ run : |
42+ micromamba activate TEST
43+ micromamba info --all
44+ micromamba list
3945
4046 - name : Tests
4147 shell : bash -l {0}
4248 run : |
43- source activate TEST
49+ micromamba activate TEST
4450 cd test && python run_all.py
4551
4652 run-mpi :
@@ -53,26 +59,30 @@ jobs:
5359 steps :
5460 - uses : actions/checkout@v2
5561
56- - name : Setup Conda
57- uses : s-weigand/setup-conda@v1
62+ - name : Setup Micromamba
63+ uses : mamba-org/provision-with-micromamba@main
5864 with :
59- activate-conda : false
60- conda-channels : conda-forge
65+ environment-file : false
6166
6267 - name : Python ${{ matrix.python-version }}
6368 shell : bash -l {0}
6469 run : |
65- conda create --name TEST python=${{ matrix.python-version }} numpy cython pip pytest mpi4py hdf5=*=mpi* libnetcdf=*=mpi* cftime --strict- channel-priority
66- source activate TEST
70+ micromamba create --name TEST python=${{ matrix.python-version }} numpy cython pip pytest mpi4py hdf5=*=mpi* libnetcdf=*=mpi* cftime zlib -- channel conda-forge
71+ micromamba activate TEST
6772 export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH" # so setup.py finds nc-config
6873 pip install -e . --no-deps --force-reinstall
69- conda info --all
70- conda list
74+
75+ - name : Debug conda
76+ shell : bash -l {0}
77+ run : |
78+ micromamba activate TEST
79+ micromamba info --all
80+ micromamba list
7181
7282 - name : Tests
7383 shell : bash -l {0}
7484 run : |
75- source activate TEST
85+ micromamba activate TEST
7686 cd test && python run_all.py
7787 cd ../examples
7888 export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH"
0 commit comments