From e3b68e734e552d99929bc88dd018405156fe347a Mon Sep 17 00:00:00 2001 From: Luis Pedro Coelho Date: Tue, 5 Mar 2024 10:47:20 +1000 Subject: [PATCH] TST Test on newer versions of Python --- .../test-python-package-with-conda.yml | 71 ++++++++++++++++--- 1 file changed, 60 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test-python-package-with-conda.yml b/.github/workflows/test-python-package-with-conda.yml index d6fead2..533ba8f 100644 --- a/.github/workflows/test-python-package-with-conda.yml +++ b/.github/workflows/test-python-package-with-conda.yml @@ -7,21 +7,70 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.6', '3.7', '3.8', '3.9'] - numpy-version: ['1.17', '1.18', '1.19', '1.20', '1.21'] + python-version: + - '3.6' + - '3.7' + - '3.8' + - '3.9' + - '3.10' + - '3.11' + numpy-version: + - '1.19' + - '1.20' + - '1.21' + - '1.22' + - '1.23' + - '1.24' + - '1.25' + - '1.26' exclude: - # 3.6 is too old for NumPy 1.20/1.21 - - python-version: '3.6' + # 3.7 is too old for NumPy 1.22+ + - python-version: '3.7' + numpy-version: '1.22' + - python-version: '3.7' + numpy-version: '1.23' + - python-version: '3.7' + numpy-version: '1.24' + - python-version: '3.7' + numpy-version: '1.25' + - python-version: '3.7' + numpy-version: '1.26' + + # 3.8 is too old for NumPy 1.25+ + - python-version: '3.8' + numpy-version: '1.25' + - python-version: '3.8' + numpy-version: '1.26' + + # NumPy 1.20 & Python 3.7 trigger a bad resolve from mamba + - python-version: '3.7' numpy-version: '1.20' - - python-version: '3.6' - numpy-version: '1.21' - # NumPy 1.17/1.18 are too old for Python 3.9 + # NumPy 1.19 is not available on 3.7-9 + - python-version: '3.7' + numpy-version: '1.19' + - python-version: '3.8' + numpy-version: '1.19' - python-version: '3.9' - numpy-version: '1.17' - - python-version: '3.9' - numpy-version: '1.18' - max-parallel: 5 + numpy-version: '1.19' + + + # NumPy <1.21 are too old for Python 3.10 + - python-version: '3.10' + numpy-version: '1.19' + - python-version: '3.10' + numpy-version: '1.20' + + + # NumPy <1.23 are too old for Python 3.11 + - python-version: '3.11' + numpy-version: '1.19' + - python-version: '3.11' + numpy-version: '1.20' + - python-version: '3.11' + numpy-version: '1.21' + - python-version: '3.11' + numpy-version: '1.22' steps: - uses: actions/checkout@v2