Skip to content

Commit e69cd55

Browse files
authored
fix: pin uv version and add caching to CI workflows (#424)
## 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 340afa2 commit e69cd55

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- name: Install uv
3434
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
3535
with:
36+
version: "0.10.9"
3637
enable-cache: true
3738

3839
- name: Set up Python

.github/workflows/python-ci.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

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

.github/workflows/super-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

@@ -25,6 +29,7 @@ jobs:
2529
- name: Install uv
2630
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
2731
with:
32+
version: "0.10.9"
2833
enable-cache: true
2934
- name: Install dependencies
3035
run: uv sync --frozen

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