diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75a91fccb..29869655c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.11'] + python-version: ['3.10', '3.12'] steps: - name: Check out repository @@ -63,7 +63,7 @@ jobs: runs-on: macos-latest strategy: matrix: - python-version: ['3.11'] + python-version: ['3.12'] steps: - name: Check out repository @@ -99,7 +99,7 @@ jobs: runs-on: windows-latest strategy: matrix: - python-version: ['3.11'] + python-version: ['3.12'] steps: - name: Check out repository @@ -132,7 +132,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.11'] + python-version: ['3.10', '3.12'] steps: - name: Check out repository @@ -171,7 +171,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.11'] + python-version: ['3.10', '3.12'] # needed to allow julia-actions/cache to delete old caches that it has created permissions: @@ -225,8 +225,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - # ipopt does not work on 3.9 (https://github.com/mechmotum/cyipopt/issues/225) - python-version: ['3.11'] + python-version: ['3.12'] steps: - name: Check out repository @@ -262,7 +261,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.11'] + python-version: ['3.10', '3.12'] steps: - name: Check out repository @@ -298,7 +297,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.11'] + python-version: ['3.10', '3.12'] steps: - name: Check out repository @@ -334,7 +333,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.11'] + python-version: ['3.12'] steps: - name: Check out repository @@ -399,7 +398,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9'] + python-version: ['3.10'] steps: - name: Check out repository @@ -429,7 +428,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9'] + python-version: ['3.10'] steps: - name: Check out repository diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4cb46a6e3..e1ed397bb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9'] + python-version: ['3.12'] steps: - name: Check out repository diff --git a/setup.cfg b/setup.cfg index e5d201411..4d94bb3b7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,9 +33,9 @@ classifiers = License :: OSI Approved :: BSD License Operating System :: OS Independent Programming Language :: Python + Programming Language :: Python :: 3.12 Programming Language :: Python :: 3.11 Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.9 keywords = parameter inference optimization @@ -58,7 +58,7 @@ install_requires = tqdm >= 4.46.0 tabulate >= 0.8.10 -python_requires = >=3.9 +python_requires = >=3.10 include_package_data = True # Where is my code diff --git a/test/base/test_objective.py b/test/base/test_objective.py index d2c556927..998a1f0af 100644 --- a/test/base/test_objective.py +++ b/test/base/test_objective.py @@ -2,6 +2,7 @@ import copy import numbers +import sys from functools import partial import numpy as np @@ -12,6 +13,11 @@ from ..util import CRProblem, poly_for_sensi, rosen_for_sensi +pytest_skip_aesara = pytest.mark.skipif( + sys.version_info >= (3, 12), + reason="Skipped Aesara tests on Python 3.12 or higher", +) + @pytest.fixture(params=[True, False]) def integrated(request): @@ -178,6 +184,7 @@ def rel_err(eps_): ) +@pytest_skip_aesara def test_aesara(max_sensi_order, integrated): """Test function composition and gradient computation via aesara""" import aesara.tensor as aet