Skip to content

Commit 655950b

Browse files
authored
Test oldest available Python per minor version on CI (#13846)
1 parent 7e2848b commit 655950b

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
- run: git diff --exit-code
114114

115115
tests-unix:
116-
name: tests / ${{ matrix.python.key || matrix.python }} / ${{ matrix.os }}
116+
name: tests / ${{ matrix.python.version || matrix.python }} / ${{ matrix.os }}
117117
runs-on: ${{ matrix.os }}
118118

119119
needs: [determine-changes]
@@ -133,14 +133,31 @@ jobs:
133133
- "3.13"
134134
- "3.14"
135135
- "3.15"
136+
include:
137+
# Oldest patch release per minor version on ubuntu-latest,
138+
# to catch backport/bug fix regressions. Constrained by what
139+
# actions/setup-python ships for the runner OS (ubuntu-24.04).
140+
# See: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
141+
- os: ubuntu-latest
142+
python: { key: "3.9", version: "3.9.12" }
143+
- os: ubuntu-latest
144+
python: { key: "3.10", version: "3.10.4" }
145+
- os: ubuntu-latest
146+
python: { key: "3.11", version: "3.11.0" }
147+
- os: ubuntu-latest
148+
python: { key: "3.12", version: "3.12.0" }
149+
- os: ubuntu-latest
150+
python: { key: "3.13", version: "3.13.0" }
151+
- os: ubuntu-latest
152+
python: { key: "3.14", version: "3.14.0" }
136153

137154
steps:
138155
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
139156
with:
140157
persist-credentials: false
141158
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
142159
with:
143-
python-version: ${{ matrix.python }}
160+
python-version: ${{ matrix.python.version || matrix.python }}
144161
allow-prereleases: true
145162

146163
- name: Install Ubuntu dependencies

news/13846.trivial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Test oldest available Python per minor version on CI.

0 commit comments

Comments
 (0)