Skip to content

Commit

Permalink
Merge pull request #23 from glotzerlab/refactor-setup-uv
Browse files Browse the repository at this point in the history
Switch from curl to the official astral setup-uv.
  • Loading branch information
joaander authored Jan 31, 2025
2 parents 945182d + 591ec55 commit 0e6e5b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Set up Python environment
uses: ./setup-uv
with:
version: 0.2.2
version: 0.4.0
- run: uv --version

setup_uv_lockfile:
Expand Down
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 0e6e5b8

Please sign in to comment.