From 1fde585003c286841e3884012bef000d1ff5f4ee Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Mon, 16 Oct 2023 17:26:40 -0400 Subject: [PATCH] fix(CI): Call python to upgrade pip on Windows (#4768) In Windows, we need to call `python` in order for the `pip` upgrade command to work. This changes the GitHub Actions Windows CI job to use the correct command to upgrade PIP, fixing this error: ``` ERROR: To modify pip, please run the following command: C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe -m pip install --upgrade pip ``` A future task is to make job run on heavy Windows runners so that it doesn't take so long. Context: #4596 --- .github/workflows/windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 4988e323e2b..98cbb9acc40 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -36,7 +36,7 @@ jobs: id: pip-cache shell: bash run: | - pip install --upgrade pip + python -m pip install --upgrade pip echo "dir=$(pip cache dir)" | tee ${GITHUB_OUTPUT} - name: restore Python cache directory uses: actions/cache@v3