Skip to content

Commit

Permalink
try using irm instead of pip on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Feb 19, 2024
1 parent 9c3eb49 commit b83a23d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,10 @@ jobs:
allow-prereleases: true
- name: Create and activate a virtual environment (Windows)
if: ${{ runner.os == 'Windows' }}
# `pip install uv` is annoyingly slow,
# but there doesn't seem to be a better option on Windows currently
# that's available on GitHub Actions :(
#
# uv doesn't (yet) allow us to install packages globally;
# we have to create and activate a virtual environment
run: |
pip install uv
irm https://astral.sh/uv/install.ps1 | iex
uv venv .venv
"VIRTUAL_ENV=.venv" | Out-File -FilePath $env:GITHUB_ENV -Append
"$PWD/.venv/Scripts" | Out-File -FilePath $env:GITHUB_PATH -Append
Expand Down

0 comments on commit b83a23d

Please sign in to comment.