Skip to content

Commit 7752d56

Browse files
authored
fix: pin uv version and add caching to CI workflows (#691)
## 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 956ba5f commit 7752d56

4 files changed

Lines changed: 20 additions & 0 deletions

File tree

.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: Set up 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: Set up Python
3037
run: uv python install 3.12
3138
- name: Install dependencies

.github/workflows/python-package.yml

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

@@ -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: Set up Python ${{ matrix.python-version }}
3037
run: uv python install ${{ matrix.python-version }}
3138
- 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)