-
Notifications
You must be signed in to change notification settings - Fork 2
fix: pin uv version and add caching to CI workflows #127
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 | ||
|
|
||
|
|
@@ -27,6 +31,7 @@ jobs: | |
| - name: Install uv | ||
| uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 | ||
| with: | ||
| version: "0.10.9" | ||
| enable-cache: true | ||
|
Comment on lines
33
to
35
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| run: uv python install ${{ matrix.python-version }} | ||
|
|
||
| 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
+32
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.
enable-cache: truerelies on the Actions cache service, but the workflow/job permissions don’t grant anyactionsscope (onlycontents,packages,statuses). Withpermissionsset explicitly,actionsdefaults tonone, which can prevent cache restore/save. Addactions: write(oractions: readif you only want restores) when enabling uv caching.