Skip to content

Commit

Permalink
Switch from curl to the official astral setup-uv.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Jan 31, 2025
1 parent 945182d commit 3902368
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions setup-uv/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
version:
description: 'uv version to install.'
required: false
default: '0.4.18'
default: '0.5.26'
lockfile:
description: 'Packages to install.'
required: false
Expand All @@ -18,11 +18,12 @@ inputs:
runs:
using: "composite"
steps:
- name: Install uv
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/${{ inputs.version }}/uv-installer.sh | bash
shell: bash
- name: Setup uv
uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
version: ${{ inputs.version }}

- name: Install
- name: Install packages
if: ${{ inputs.lockfile != '' }}
run: "uv pip sync ${{ inputs.lockfile }} --only-binary=${{ inputs.only-binary }} --system --reinstall"
shell: bash

0 comments on commit 3902368

Please sign in to comment.