psycopg.git / summary / log / commit / refs
commit e8ed28285caee45d64bdcef86986c0fa88e564a1
Author: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Date: Thu Aug 27 17:04:53 2026 +0000
chore: update Python version in 3rd party tests
SQLAlchemy doesn't seem to support Python 3.10 anymore. Use Python 3.14
as the upper bound of the tested versions.
Also enable prepared transactions in the Postgres service for SQLAlchemy
tests: SA tests now fail if they are not enabled. The possibility to pass
an option to initdb parameters is only supported from PostgreSQL 16 on.
.github/workflows/3rd-party-tests.yml | 17 +++++++++--------
docs/release.rst | 3 +++
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/3rd-party-tests.yml b/.github/workflows/3rd-party-tests.yml
index ca14010a..0f7493e1 100644
--- a/.github/workflows/3rd-party-tests.yml
+++ b/.github/workflows/3rd-party-tests.yml
@@ -29,11 +29,11 @@ jobs:
fail-fast: false
matrix:
python-version:
- - "3.13"
- - "3.10"
+ - "3.14"
+ - "3.11"
sqlalchemy_label:
- # what version of sqlalchemy to download is defined in the "include" section below,
- # in the variable pip_sqlalchemy
+ # what version of sqlalchemy to download is defined in the "include"
+ # section below, in the variable pip_sqlalchemy
- git_main
- release
impl:
@@ -51,10 +51,11 @@ jobs:
services:
postgresql:
- image: postgres:15
+ image: postgres:18
env:
POSTGRES_PASSWORD: password
POSTGRES_DB: test
+ POSTGRES_INITDB_ARGS: "-c max_prepared_transactions=10"
ports:
- 5432:5432
# Wait until postgres has started
@@ -154,13 +155,13 @@ jobs:
python-version: "3.10"
- django_label: lts5
impl: python
- python-version: "3.13"
+ python-version: "3.14"
- django_label: git_main
impl: c
- python-version: "3.13"
+ python-version: "3.14"
- django_label: git_main
impl: python
- python-version: "3.12"
+ python-version: "3.13"
env:
DEPS: ./psycopg ./psycopg_pool
diff --git a/docs/release.rst b/docs/release.rst
index 29e043b1..245c730f 100644
--- a/docs/release.rst
+++ b/docs/release.rst
@@ -121,6 +121,9 @@ When a new Python major version is released
- Add the new version to the relevant test matrices in
``.github/workflows/tests.yml`` and ``.github/workflows/packages-bin.yml``.
+- Move the upper bounds of the Python version to test in 3rd party tests, in
+ ``.github/workflows/3rd-party-tests.yml``.
+
- Update ``docs/basic/install.rst`` with the correct range of supported Python
versions.
[parent: ae27e48df4f7]