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.
```
This commit is contained in:
Charlie Lin 2025-08-07 15:04:31 +00:00 committed by GitHub
parent d0797bd272
commit 79e5de103a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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