From 035b0e0a6e07d2cc508908f4f59c49d0ba73c818 Mon Sep 17 00:00:00 2001 From: jmeridth Date: Wed, 11 Mar 2026 01:09:31 -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 cea8db5..5f7082d 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: Set up Python run: uv python install 3.14 diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 9484413..1719f94 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: Set up Python run: uv python install 3.12 - name: Install dependencies diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 7a622b7..3305f2a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -10,6 +10,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: Set up 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 8ff16c4..0d507fe 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