-
Notifications
You must be signed in to change notification settings - Fork 88
Description
The uv project changes dynamically, so keeping both local and CI version of uv might be challenging. In order to keep both versions consistent, I would suggest to enable pinning them in a "version" file.
For example, this can be achieved by adding an extra input variable:
name: uv
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
uv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
enable-cache: true
version-file: .uv-version # <- this is the idea of this issue
- uses: actions/setup-python@v5
with:
python-version-file: .python-version
- run: uv lock --lockedThe file could be also auto-detected if neither version nor version-file is explicitly stated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels