Pin Python versions in CI (#20531)

Part of https://github.com/element-hq/backend-internal/issues/238

Also discussed in [meeting to improve security release
process](https://docs.google.com/document/d/1UUShIXcuhmDX53-auQIEkeuEaLDYedkFfiE6NbSzOuE/edit?tab=t.0#bookmark=id.c2cmusfqw6lc)

Spawning from seeing the CI failing in an old LTS branch because it's
choosing the newest Python 3.15 which we're not compatible with yet
(https://github.com/element-hq/synapse/issues/20340), let alone the old
LTS. We also experienced this here in Synapse FOSS codebase which is why
https://github.com/element-hq/synapse/pull/20386 was made.
This commit is contained in:
Eric Eastwood authored and GitHub committed 2026-11-18 17:14:21 -06:00
1 parent 5a294d8d7b
commit 1b0fd0abc6
13 files changed
+59 -21

No files matched your search

+2
View File
@@ -19,6 +19,7 @@ permissions:
env:
RUST_VERSION: 1.87.0
LATEST_SUPPORTED_PYTHON_VERSION: "3.14"
jobs:
complement:
@@ -58,6 +59,7 @@ jobs:
# We use `poetry` in `complement.sh`
- uses: matrix-org/setup-python-poetry@5bbf6603c5c930615ec8a29f1b5d7d258d905aa4 # v2.0.0
with:
python-version: ${{ env.LATEST_SUPPORTED_PYTHON_VERSION }}
poetry-version: "2.4.1"
# Matches the `path` where we checkout Synapse above
working-directory: "synapse"