Skip to content

Commit 9e641c2

Browse files
committed
Modify CI test matrix to test on Numpy 1.17 and 1.20, Python 3.7 and 3.9
Test only on minimum and maximum supported versions according to NEP. I.e. minimum of NumPy 1.17 and Py3.7, maximum of NumPy 1.20 and Py3.9. This drops testing on the middle Python 3.8 version to conserve CI resources.
1 parent 78c3d2a commit 9e641c2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/ci_tests.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
python-version: [3.7, 3.8, 3.9]
33+
numpy-version: ['1.17', '1.20']
34+
python-version: [3.7, 3.9]
3435
os: [ubuntu-latest, macOS-latest, windows-latest]
3536
# Is it a draft Pull Request (true or false)?
3637
isDraft:
@@ -44,9 +45,6 @@ jobs:
4445
- os: ubuntu-latest
4546
python-version: 3.7
4647
isDraft: true
47-
- os: ubuntu-latest
48-
python-version: 3.8
49-
isDraft: true
5048
defaults:
5149
run:
5250
shell: bash -l {0}
@@ -82,7 +80,8 @@ jobs:
8280
# Install GMT and other required dependencies from conda-forge
8381
- name: Install dependencies
8482
run: |
85-
conda install gmt=6.1.1 numpy pandas xarray netCDF4 packaging \
83+
conda install gmt=6.1.1 numpy=${{ matrix.numpy-version }} pandas \
84+
xarray netCDF4 packaging \
8685
codecov coverage[toml] ipython make \
8786
pytest-cov pytest-mpl pytest>=6.0 \
8887
sphinx-gallery

0 commit comments

Comments
 (0)