Skip to content

Commit 5f85788

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 f5ff4fa commit 5f85788

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/ci.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,23 @@ 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: ${{ github.event_name == 'schedule' }}
186+
exclude:
187+
# Only run Windows CI across all Python versions during a scheduled run.
188+
- { python: "3.9", scheduled: false }
189+
- { python: "3.10", scheduled: false }
190+
- { python: "3.11", scheduled: false }
191+
- { python: "3.12", scheduled: false }
186192

187193
steps:
188194
# The D: drive is significantly faster than the system C: drive.

0 commit comments

Comments
 (0)