-
Notifications
You must be signed in to change notification settings - Fork 25
fix: uv version pin and caching #496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,10 @@ on: | |
| pull_request: | ||
| branches: [main] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
|
|
@@ -25,6 +29,9 @@ jobs: | |
| persist-credentials: false | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 | ||
| with: | ||
| version: "0.10.9" | ||
| enable-cache: true | ||
|
Comment on lines
31
to
+34
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| run: uv python install ${{ matrix.python-version }} | ||
| - name: Install dependencies | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,10 @@ on: | |
| pull_request: | ||
| branches: [main] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
|
|
@@ -25,6 +29,9 @@ jobs: | |
| persist-credentials: false | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 | ||
| with: | ||
| version: "0.10.9" | ||
| enable-cache: true | ||
|
Comment on lines
31
to
+34
|
||
| - name: Install dependencies | ||
| run: | | ||
| uv sync --frozen | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,9 @@ jobs: | |
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 | ||
| with: | ||
| version: "0.10.9" | ||
| enable-cache: true | ||
|
Comment on lines
30
to
+34
|
||
|
|
||
| - name: Update uv.lock | ||
| run: uv lock | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow explicitly sets
permissions: contents: read; withenable-cache: trueforsetup-uv, cache restore/save can fail withoutactions: writepermission. Addactions: writeto the workflow permissions (or disable caching).