Skip to content

Commit ffc66b2

Browse files
authored
fix: pin uv version and add caching to CI workflows (#447)
## What Pin uv to version 0.10.9 with caching enabled across all setup-uv action usages in CI workflows. Add concurrency groups to CI and linter workflows to cancel in-progress runs on new pushes. ## Why Unpinned uv versions can cause unexpected CI breakage when new releases introduce breaking changes. Caching speeds up workflow runs. Concurrency cancellation avoids wasting CI resources on outdated pushes. ## Notes - Mirrors changes from github-community-projects/evergreen#496 - The concurrency block only applies to CI and linter workflows, not to copilot-setup-steps or update-uv-lock workflows Signed-off-by: jmeridth <jmeridth@gmail.com>
1 parent 9c68818 commit ffc66b2

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.github/workflows/copilot-setup-steps.yml

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

3333
- name: Install uv
3434
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
35+
with:
36+
version: "0.10.9"
37+
enable-cache: true
3538

3639
- name: Install Python
3740
run: uv python install 3.14

.github/workflows/linter.yaml

Lines changed: 7 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

@@ -26,6 +30,9 @@ jobs:
2630
persist-credentials: false
2731
- name: Install uv
2832
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
33+
with:
34+
version: "0.10.9"
35+
enable-cache: true
2936
- name: Install dependencies
3037
run: uv sync --frozen
3138
- name: Lint Code Base

.github/workflows/python-package.yml

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

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

@@ -24,6 +28,9 @@ jobs:
2428
persist-credentials: false
2529
- name: Install uv
2630
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
31+
with:
32+
version: "0.10.9"
33+
enable-cache: true
2734
- name: Install Python ${{ matrix.python-version }}
2835
run: uv python install ${{ matrix.python-version }}
2936
- name: Install dependencies

.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)