From 934edbe6996e84974bb8a92461d8d8010ac0ca6b Mon Sep 17 00:00:00 2001 From: Damian Shaw Date: Sun, 13 Oct 2024 15:16:09 -0400 Subject: [PATCH 1/2] For scheduled runs tests all versions of Python on Windows --- .github/workflows/ci.yml | 51 +++++++++++++++++++++++++++++++++++----- 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2af281c7027..faff17ab527 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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] @@ -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 From eb2a4f4f12e2ae76d84442833f3a10111413db35 Mon Sep 17 00:00:00 2001 From: Damian Shaw Date: Sun, 13 Oct 2024 15:20:13 -0400 Subject: [PATCH 2/2] NEWS ENTRY --- news/12014.trivial.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/12014.trivial.rst diff --git a/news/12014.trivial.rst b/news/12014.trivial.rst new file mode 100644 index 00000000000..ce07e677bd0 --- /dev/null +++ b/news/12014.trivial.rst @@ -0,0 +1 @@ +For scheduled runs tests all versions of Python on Windows.