Skip to content

Commit 02277f4

Browse files
committed
ci: Test all Python versions on Windows on scheduled runs
We should test pip across our entire Python support matrix on Windows, but we don't want to run the test suite across every Python version on very run as it's slow and unlikely to undercover a bug that the boundary jobs won't.
1 parent c5f3d69 commit 02277f4

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/ci.yml

+16-6
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,27 @@ jobs:
172172
matrix:
173173
os: [Windows]
174174
python:
175+
# NOTE: don't forget to update middle versions below!
175176
- "3.8"
176-
# Commented out, since Windows tests are expensively slow,
177-
# only test the oldest and newest Python supported by pip
178-
# - "3.9"
179-
# - "3.10"
180-
# - "3.11"
181-
# - "3.12"
177+
- "3.9"
178+
- "3.10"
179+
- "3.11"
180+
- "3.12"
182181
- "3.13"
183182
group:
184183
- { number: 1, pytest-filter: "not test_install" }
185184
- { number: 2, pytest-filter: "test_install" }
185+
scheduled:
186+
- ${{ github.event_name == 'schedule' }}
187+
exclude:
188+
# Only run Windows CI across all Python versions during a scheduled run.
189+
# This is possible by smuggling whether the run is scheduled via a
190+
# a dynamic matrix variable and matching against that. Don't ask me why
191+
# scheduled is defined as an array.
192+
- { python: "3.9", scheduled: false }
193+
- { python: "3.10", scheduled: false }
194+
- { python: "3.11", scheduled: false }
195+
- { python: "3.12", scheduled: false }
186196

187197
steps:
188198
# The D: drive is significantly faster than the system C: drive.

0 commit comments

Comments
 (0)