@@ -10,39 +10,39 @@ jobs:
1010 runs-on : ${{ matrix.os }}
1111 strategy :
1212 matrix :
13- python-version : ["3.8", "3. 9", "3.10", "3.11"]
13+ python-version : ["3.9", "3.10", "3.11"]
1414 os : [windows-latest, ubuntu-latest, macos-latest]
1515 # Oldest one based on NEP-29 and latest one.
1616 # See https://numpy.org/neps/nep-0029-deprecation_policy.html
17- numpy-version : ["1.21 ", "1.23 "]
17+ numpy-version : ["1.22 ", "1.25 "]
1818 exclude :
1919 - python-version : " 3.11"
20- numpy-version : " 1.21 "
20+ numpy-version : " 1.22 "
2121 fail-fast : false
2222
2323 steps :
2424 - uses : actions/checkout@v3
2525
26- - name : Setup Micromamba
27- uses : mamba-org/provision-with- micromamba@v16
26+ - name : Setup Micromamba Python ${{ matrix.python-version }} numpy ${{ matrix.numpy-version }}
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 }} python-build numpy=${{ matrix.numpy-version }} --file requirements-dev.txt --channel conda-forge
3033
31- - name : Python ${{ matrix.python-version }} numpy ${{ matrix.numpy-version }}
34+ - name : Install gsw
3235 shell : bash -l {0}
33- run : >
34- micromamba create --name TEST python=${{ matrix.python-version }} python-build numpy=${{ matrix.numpy-version }} --file requirements-dev.txt --channel conda-forge
35- && micromamba activate TEST
36- && python -m pip install -e . --no-deps --no-build-isolation --force-reinstall
36+ run : |
37+ python -m pip install -e . --no-deps --force-reinstall
3738
3839 - name : Debug
3940 shell : bash -l {0}
40- run : >
41- micromamba activate TEST
42- && python -c "import numpy; print(f'Running numpy {numpy.__version__}')"
41+ run : |
42+ python -c "import numpy; print(f'Running numpy {numpy.__version__}')"
4343
4444 - name : Tests
4545 shell : bash -l {0}
46- run : >
46+ run : |
4747 micromamba activate TEST
48- && pytest -s -rxs -v gsw/tests
48+ pytest -s -rxs -v gsw/tests
0 commit comments