Skip to content

Commit

Permalink
Try uv action
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-ward committed Nov 29, 2024
1 parent 11d97e2 commit 841532f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,16 @@ jobs:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Create virtual environment (Linux / MacOS)
# install uv and use it to create a virtual environment, then add it to
# environment variables so that it is automatically activated and can be
# used for tests below
if: ${{ runner.os != 'Windows' }}
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
# curl -LsSf https://astral.sh/uv/install.sh | sh
# . $HOME/.local/bin/env
uv venv .venv
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV
Expand All @@ -287,7 +290,7 @@ jobs:
- name: Create virtual environment (Windows)
if: ${{ runner.os == 'Windows' }}
run: |
irm https://astral.sh/uv/install.ps1 | iex
# 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 841532f

Please sign in to comment.