From a9f2a418fa753cc35ee3320ee82ae032d54df4d6 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Wed, 24 Sep 2025 10:19:39 -0500 Subject: [PATCH] CI: Use windows-2022 image on Windows workflows This avoids failures in some tests with the windows-latest image and potential issues with our installers. --- .github/workflows/build-subrepos.yml | 2 +- .github/workflows/installers-conda.yml | 2 +- .github/workflows/test-win.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-subrepos.yml b/.github/workflows/build-subrepos.yml index 1fc8fc61497..16163fadec1 100644 --- a/.github/workflows/build-subrepos.yml +++ b/.github/workflows/build-subrepos.yml @@ -42,7 +42,7 @@ jobs: - os: ubuntu-latest pkg: spyder-kernels cache-arch: unix - - os: windows-latest + - os: windows-2022 pkg: spyder-kernels python-version: '3.12' cache-arch: win-64 diff --git a/.github/workflows/installers-conda.yml b/.github/workflows/installers-conda.yml index 8f6b95683a5..54609644dd0 100644 --- a/.github/workflows/installers-conda.yml +++ b/.github/workflows/installers-conda.yml @@ -93,7 +93,7 @@ jobs: fi if [[ $BUILD_WIN == "true" ]]; then target_platform=${target_platform:+"$target_platform, "}"'win-64'" - include=${include:+"$include, "}"{'os': 'windows-latest', 'target-platform': 'win-64', 'spyk-arch': 'win-64'}" + include=${include:+"$include, "}"{'os': 'windows-2022', 'target-platform': 'win-64', 'spyk-arch': 'win-64'}" fi if [[ $GITHUB_EVENT_NAME == "schedule" ]]; then diff --git a/.github/workflows/test-win.yml b/.github/workflows/test-win.yml index b45e03ae661..de56de7d52a 100644 --- a/.github/workflows/test-win.yml +++ b/.github/workflows/test-win.yml @@ -54,7 +54,7 @@ jobs: # Use this to disable the workflow # if: false name: Windows - Py${{ matrix.PYTHON_VERSION }}, ${{ matrix.INSTALL_TYPE }}, ${{ matrix.TEST_TYPE }} - runs-on: windows-latest + runs-on: windows-2022 env: CI: 'true' QTCONSOLE_TESTING: 'true'