Skip to content

Commit dd1411a

Browse files
authored
Merge pull request #127 from github-community-projects/fix/uv-version-pin-and-caching
fix: pin uv version and add caching to CI workflows
2 parents 5a6c63f + 4e6eb18 commit dd1411a

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.github/workflows/linter.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
pull_request:
66
branches: [main]
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
permissions:
913
contents: read
1014

@@ -27,6 +31,7 @@ jobs:
2731
- name: Install uv
2832
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
2933
with:
34+
version: "0.10.9"
3035
enable-cache: true
3136
- name: Install dependencies
3237
run: |

.github/workflows/python-package.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
pull_request:
1111
branches: [main]
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
permissions:
1418
contents: read
1519

@@ -27,6 +31,7 @@ jobs:
2731
- name: Install uv
2832
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
2933
with:
34+
version: "0.10.9"
3035
enable-cache: true
3136
- name: Set up Python ${{ matrix.python-version }}
3237
run: uv python install ${{ matrix.python-version }}

.github/workflows/update-uv-lock.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929

3030
- name: Install uv
3131
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
32+
with:
33+
version: "0.10.9"
34+
enable-cache: true
3235

3336
- name: Update uv.lock
3437
run: uv lock

0 commit comments

Comments
 (0)