From 5122127e14621112f2445de2d49dc4e8c1f2c037 Mon Sep 17 00:00:00 2001 From: Gijs van Tulder Date: Thu, 23 May 2024 18:28:07 +0200 Subject: [PATCH] Update Python versions for tests and wheels. Removed 2.7, 3.5, 3.6, added 3.11, 3.12. --- .github/workflows/test.yml | 16 +++++++--------- .github/workflows/wheels.yml | 5 +++-- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 70e4d4d..73b23a0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,22 +10,20 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] tensorflow: ['tensorflow'] # the implementation for scipy.ndimage changed in SciPy 1.6.0, # causing some of the tests to fail - scipy: ['scipy<=1.5.4'] + scipy: ['scipy'] include: - # run one test with an older tensorflow version - - python-version: '3.6' - tensorflow: 'tensorflow==1.15' + # run an experiment with an old scipy.ndimage: + # the implementation for scipy.ndimage changed in SciPy 1.6.0, + # so the output will not match in newer versions + - python-version: '3.7' + tensorflow: tensorflow scipy: 'scipy<=1.5.4' - # old scipy is not supported in Python 3.10 - - python-version: '3.10' - tensorflow: tensorflow - scipy: 'scipy' steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index b087a99..80fc89b 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -21,7 +21,8 @@ jobs: - ["cp38", "3.8"] - ["cp39", "3.9"] - ["cp310", "3.10"] - - ["cp311", "3.11.0-alpha - 3.11.0"] + - ["cp311", "3.11"] + - ["cp312", "3.12"] steps: - uses: actions/checkout@v3 @@ -30,7 +31,7 @@ jobs: - uses: actions/setup-python@v3 - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.10.1 + run: python -m pip install cibuildwheel==2.18.1 # https://github.com/scipy/oldest-supported-numpy/blob/master/setup.cfg