From 3a8698e4757997b86206209e9b1c8388709bead1 Mon Sep 17 00:00:00 2001 From: jmeridth Date: Wed, 11 Mar 2026 01:09:32 -0500 Subject: [PATCH] fix: pin uv version and add caching to CI workflows ## 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 --- .github/workflows/copilot-setup-steps.yml | 3 +++ .github/workflows/linter.yaml | 7 +++++++ .github/workflows/python-package.yml | 7 +++++++ .github/workflows/update-uv-lock.yml | 3 +++ 4 files changed, 20 insertions(+) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index ff62599..e08ed73 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -32,6 +32,9 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 + with: + version: "0.10.9" + enable-cache: true - name: Install Python run: uv python install 3.14 diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 6b29fb1..1d8c897 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -5,6 +5,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read @@ -26,6 +30,9 @@ jobs: persist-credentials: false - name: Install uv uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 + with: + version: "0.10.9" + enable-cache: true - name: Install dependencies run: uv sync --frozen - name: Lint Code Base diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 0836752..0ba82b2 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -9,6 +9,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read @@ -24,6 +28,9 @@ jobs: persist-credentials: false - name: Install uv uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 + with: + version: "0.10.9" + enable-cache: true - name: Install Python ${{ matrix.python-version }} run: uv python install ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/update-uv-lock.yml b/.github/workflows/update-uv-lock.yml index b843faa..00d09d7 100644 --- a/.github/workflows/update-uv-lock.yml +++ b/.github/workflows/update-uv-lock.yml @@ -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 - name: Update uv.lock run: uv lock