From 79e5de103a07b7e23f5d6c77f6c94300634bb28e Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Thu, 7 Aug 2025 15:04:31 +0000 Subject: [PATCH] Work around Windows wonkiness On Windows, attempting to upgrade `pip` within CI always yields this: ``` Run pip install -U pip Requirement already satisfied: pip in c:\hostedtoolcache\windows\python\3.10.11\x64\lib\site-packages (25.1.1) Collecting pip Downloading pip-25.2-py3-none-any.whl.metadata (4.7 kB) Downloading pip-25.2-py3-none-any.whl (1.8 MB) ---------------------------------------- 1.8/1.8 MB 48.1 MB/s eta 0:00:00 Notice: A new release of pip is available: 25.1.1 -> 25.2 Notice: To update, run: python.exe -m pip install --upgrade pip ERROR: To modify pip, please run the following command: C:\hostedtoolcache\windows\Python\3.10.11\x64\python.exe -m pip install -U pip Error: Process completed with exit code 1. ``` --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f080dae..0bcbaeb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,8 @@ jobs: - name: Prepare shell: bash run: | - pip install -U pip + # TODO: Workaround for Windows tests failing when upgrading `pip` with exit code 1 + # pip install -U pip pip install -r requirements.txt pytest - name: Install pytest-run-parallel under free-threading