Skip to content

Commit 24c7f03

Browse files
author
Jeff Whitaker
authored
Merge pull request #1259 from ocefpaf/remove_deprecated_GHA
provision-with-micromamba is deprecated
2 parents a910646 + 391d18b commit 24c7f03

1 file changed

Lines changed: 18 additions & 28 deletions

File tree

.github/workflows/miniconda.yml

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,24 @@ jobs:
2424
- uses: actions/checkout@v3
2525

2626
- name: Setup Micromamba
27-
uses: mamba-org/provision-with-micromamba@v16
27+
uses: mamba-org/setup-micromamba@v1
2828
with:
29-
environment-file: false
29+
environment-name: TEST
30+
init-shell: bash
31+
create-args: >-
32+
python=${{ matrix.python-version }}
33+
numpy cython pip pytest hdf5 libnetcdf cftime zlib
34+
--channel conda-forge
3035
31-
- name: Python ${{ matrix.python-version }}
36+
- name: Install netcdf4-python
3237
shell: bash -l {0}
3338
run: |
34-
micromamba create --name TEST python=${{ matrix.python-version }} numpy cython pip pytest hdf5 libnetcdf cftime zlib --channel conda-forge
35-
micromamba activate TEST
3639
export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH" # so setup.py finds nc-config
37-
pip install -v -e . --no-deps --force-reinstall
38-
39-
- name: Debug conda
40-
shell: bash -l {0}
41-
run: |
42-
micromamba activate TEST
43-
micromamba info --all
44-
micromamba list
40+
python -m pip install -v -e . --no-deps --force-reinstall
4541
4642
- name: Tests
4743
shell: bash -l {0}
4844
run: |
49-
micromamba activate TEST
5045
cd test && python run_all.py
5146
5247
run-mpi:
@@ -60,30 +55,25 @@ jobs:
6055
- uses: actions/checkout@v3
6156

6257
- name: Setup Micromamba
63-
uses: mamba-org/provision-with-micromamba@main
58+
uses: mamba-org/setup-micromamba@v1
6459
with:
65-
environment-file: false
60+
environment-name: TEST
61+
init-shell: bash
62+
create-args: >-
63+
python=${{ matrix.python-version }}
64+
numpy cython pip pytest mpi4py hdf5=*=mpi* libnetcdf=*=mpi* cftime zlib
65+
--channel conda-forge
6666
67-
- name: Python ${{ matrix.python-version }}
67+
- name: Install netcdf4-python with mpi
6868
shell: bash -l {0}
6969
run: |
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
7270
export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH" # so setup.py finds nc-config
7371
nc-config --all
74-
pip install -v -e . --no-build-isolation --no-deps --force-reinstall
75-
76-
- name: Debug conda
77-
shell: bash -l {0}
78-
run: |
79-
micromamba activate TEST
80-
micromamba info --all
81-
micromamba list
72+
python -m pip install -v -e . --no-build-isolation --no-deps --force-reinstall
8273
8374
- name: Tests
8475
shell: bash -l {0}
8576
run: |
86-
micromamba activate TEST
8777
cd test && python run_all.py
8878
cd ../examples
8979
export PATH="${CONDA_PREFIX}/bin:${CONDA_PREFIX}/Library/bin:$PATH"

0 commit comments

Comments
 (0)