Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For scheduled runs tests all versions of Python on Windows #13014

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 45 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,10 @@ jobs:
matrix:
os: [Windows]
python:
# Since Windows tests are expensively slow, only test the
# oldest and newest Python supported by pip per PR, other
# Python versions are tested on scheduled runs
- "3.8"
# Commented out, since Windows tests are expensively slow,
# only test the oldest and newest Python supported by pip
# - "3.9"
# - "3.10"
# - "3.11"
# - "3.12"
- "3.13"
group: [1, 2]

Expand Down Expand Up @@ -225,6 +222,48 @@ jobs:
env:
TEMP: "C:\\Temp"

tests-windows-scheduled:
name: tests (scheduled) / ${{ matrix.python }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest

# This job only runs on a cron schedule
if: github.event_name == 'schedule'

strategy:
fail-fast: true
matrix:
os: [Windows]
python:
# Test against all versions of Python that are not tested per-PR
- "3.9"
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true

- run: pip install nox
env:
TEMP: "C:\\Temp"

# Main check
- name: Run unit tests
run: >-
nox -s test-${{ matrix.python.key || matrix.python }} --
-m unit
--verbose --numprocesses auto --showlocals
- name: Run integration tests
run: >-
nox -s test-${{ matrix.python.key || matrix.python }} --
-m integration
--verbose --numprocesses auto --showlocals
--durations=5

tests-zipapp:
name: tests / zipapp
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions news/12014.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
For scheduled runs tests all versions of Python on Windows.
Loading