From c05a1cf79d181afdda1f1d0a27f71d45a2d0e1e8 Mon Sep 17 00:00:00 2001 From: Michael Clerx Date: Tue, 20 Oct 2026 12:56:32 +0100 Subject: [PATCH 1/2] Dropping tests for Python 3.9 and Ubuntu 22 --- .github/workflows/copyright-test.yml | 6 +++--- .github/workflows/coverage-test.yml | 6 +++--- .github/workflows/docs-test.yml | 6 +++--- .github/workflows/notebook-interfaces-test.yml | 6 +++--- .github/workflows/notebook-test.yml | 6 +++--- .github/workflows/style-test.yml | 6 +++--- .github/workflows/unit-test-os-coverage.yml | 10 +++++----- .github/workflows/unit-test-python-coverage.yml | 8 ++++---- .github/workflows/upload-to-pypi.yml | 6 +++--- CHANGELOG.md | 2 ++ 10 files changed, 32 insertions(+), 30 deletions(-) diff --git a/.github/workflows/copyright-test.yml b/.github/workflows/copyright-test.yml index 64f2738c8..a28ddedde 100644 --- a/.github/workflows/copyright-test.yml +++ b/.github/workflows/copyright-test.yml @@ -20,12 +20,12 @@ jobs: if: github.event.pull_request.draft == false steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: - python-version: '3.14' + python-version: '3.15' - name: install pints run: | diff --git a/.github/workflows/coverage-test.yml b/.github/workflows/coverage-test.yml index 17caed24d..c7bc582f7 100644 --- a/.github/workflows/coverage-test.yml +++ b/.github/workflows/coverage-test.yml @@ -20,13 +20,13 @@ jobs: if: github.event.pull_request.draft == false steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: # Testing on version that Stan currently supports - python-version: '3.12' + python-version: '3.15' - name: install pints run: | diff --git a/.github/workflows/docs-test.yml b/.github/workflows/docs-test.yml index 50cbe7ede..da672b221 100644 --- a/.github/workflows/docs-test.yml +++ b/.github/workflows/docs-test.yml @@ -20,12 +20,12 @@ jobs: if: github.event.pull_request.draft == false steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: - python-version: '3.14' + python-version: '3.15' - name: install pints run: | diff --git a/.github/workflows/notebook-interfaces-test.yml b/.github/workflows/notebook-interfaces-test.yml index e5fb44802..7115fb961 100644 --- a/.github/workflows/notebook-interfaces-test.yml +++ b/.github/workflows/notebook-interfaces-test.yml @@ -12,13 +12,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: # Testing on version that Stan currently supports - python-version: '3.12' + python-version: '3.15' # We use e.g. install pints[stan] to install dependencies for interfaces # that have some code in pints/interfaces. Dependencies that are not used diff --git a/.github/workflows/notebook-test.yml b/.github/workflows/notebook-test.yml index 8f13b2e47..145a2a411 100644 --- a/.github/workflows/notebook-test.yml +++ b/.github/workflows/notebook-test.yml @@ -12,12 +12,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: - python-version: '3.14' + python-version: '3.15' - name: install pints run: | diff --git a/.github/workflows/style-test.yml b/.github/workflows/style-test.yml index d57f60e53..fbdd52e46 100644 --- a/.github/workflows/style-test.yml +++ b/.github/workflows/style-test.yml @@ -20,12 +20,12 @@ jobs: if: github.event.pull_request.draft == false steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: - python-version: '3.14' + python-version: '3.15' - name: install pints diff --git a/.github/workflows/unit-test-os-coverage.yml b/.github/workflows/unit-test-os-coverage.yml index 333fc7988..68b8e6a7a 100644 --- a/.github/workflows/unit-test-os-coverage.yml +++ b/.github/workflows/unit-test-os-coverage.yml @@ -21,16 +21,16 @@ jobs: strategy: matrix: - os: [ubuntu-22.04, macos-latest, windows-latest] - # Note: Ubuntu 24 is checked by other tests + os: [ubuntu-24.04, macos-latest, windows-latest] + # Note: Ubuntu 26 is checked by other tests steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: - python-version: '3.14' + python-version: '3.15' - name: install pints run: | diff --git a/.github/workflows/unit-test-python-coverage.yml b/.github/workflows/unit-test-python-coverage.yml index ece4df60e..1be4b19e1 100644 --- a/.github/workflows/unit-test-python-coverage.yml +++ b/.github/workflows/unit-test-python-coverage.yml @@ -21,14 +21,14 @@ jobs: strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] # Note: Latest version is tested by coverage test and os tests steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} architecture: x64 @@ -40,7 +40,7 @@ jobs: python -m pip install . - name: install stan - if: ${{ matrix.python-version >= '3.10' && matrix.python-version < '3.13' }} + if: ${{ matrix.python-version >= '3.12' }} run : python -m pip install .[stan] - name: run unit tests diff --git a/.github/workflows/upload-to-pypi.yml b/.github/workflows/upload-to-pypi.yml index 4a80123f1..a19851a1e 100644 --- a/.github/workflows/upload-to-pypi.yml +++ b/.github/workflows/upload-to-pypi.yml @@ -19,12 +19,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: - python-version: '3.14' + python-version: '3.15' - name: install dependencies run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 142e81ded..852a7ae41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ All notable changes to this project will be documented in this file. ### Added ### Changed +- [#1699](https://github.com/pints-team/pints/pull/1699) PINTS is no longer tested on Python 3.9. Testing for Python 3.15 has been added. +- [#1699](https://github.com/pints-team/pints/pull/1699) PINTS is no longer tested on Ubuntu 22.04. Testing on Ubuntu 26.04 has been added. ### Deprecated ### Removed ### Fixed From 03e41bbcaf132878822f86c88605f257961aa824 Mon Sep 17 00:00:00 2001 From: Michael Clerx Date: Tue, 20 Oct 2026 13:03:03 +0100 Subject: [PATCH 2/2] Fixes for stan stuff in tests --- .github/workflows/coverage-test.yml | 2 +- .github/workflows/notebook-interfaces-test.yml | 2 +- .github/workflows/unit-test-python-coverage.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage-test.yml b/.github/workflows/coverage-test.yml index c7bc582f7..c9d425f0d 100644 --- a/.github/workflows/coverage-test.yml +++ b/.github/workflows/coverage-test.yml @@ -26,7 +26,7 @@ jobs: uses: actions/setup-python@v7 with: # Testing on version that Stan currently supports - python-version: '3.15' + python-version: '3.14' - name: install pints run: | diff --git a/.github/workflows/notebook-interfaces-test.yml b/.github/workflows/notebook-interfaces-test.yml index 7115fb961..738802763 100644 --- a/.github/workflows/notebook-interfaces-test.yml +++ b/.github/workflows/notebook-interfaces-test.yml @@ -18,7 +18,7 @@ jobs: uses: actions/setup-python@v7 with: # Testing on version that Stan currently supports - python-version: '3.15' + python-version: '3.14' # We use e.g. install pints[stan] to install dependencies for interfaces # that have some code in pints/interfaces. Dependencies that are not used diff --git a/.github/workflows/unit-test-python-coverage.yml b/.github/workflows/unit-test-python-coverage.yml index 1be4b19e1..5a00b25dc 100644 --- a/.github/workflows/unit-test-python-coverage.yml +++ b/.github/workflows/unit-test-python-coverage.yml @@ -40,7 +40,7 @@ jobs: python -m pip install . - name: install stan - if: ${{ matrix.python-version >= '3.12' }} + if: ${{ matrix.python-version == '3.12' || matrix.python-version >= '3.14' }} run : python -m pip install .[stan] - name: run unit tests