From 3902368f8bdb9af9feb0894d5387e445b9985444 Mon Sep 17 00:00:00 2001 From: "Joshua A. Anderson" Date: Fri, 31 Jan 2025 11:21:31 -0500 Subject: [PATCH] Switch from curl to the official astral setup-uv. --- setup-uv/action.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/setup-uv/action.yaml b/setup-uv/action.yaml index 7f6ed66..32c4ad3 100644 --- a/setup-uv/action.yaml +++ b/setup-uv/action.yaml @@ -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 @@ -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