From fd368fe9d46848ab0c07aedcf19fbd606958c7d9 Mon Sep 17 00:00:00 2001 From: jmeridth Date: Wed, 11 Mar 2026 01:09:35 -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 | 1 + .github/workflows/python-ci.yml | 5 +++++ .github/workflows/super-linter.yaml | 5 +++++ .github/workflows/update-uv-lock.yml | 3 +++ 4 files changed, 14 insertions(+) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 60487ae..5f7082d 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -33,6 +33,7 @@ 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 diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index bf6aad8..3305f2a 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -10,6 +10,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read @@ -27,6 +31,7 @@ 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 ${{ matrix.python-version }} run: uv python install ${{ matrix.python-version }} diff --git a/.github/workflows/super-linter.yaml b/.github/workflows/super-linter.yaml index 54858c8..3281475 100644 --- a/.github/workflows/super-linter.yaml +++ b/.github/workflows/super-linter.yaml @@ -5,6 +5,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read @@ -27,6 +31,7 @@ jobs: - 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 diff --git a/.github/workflows/update-uv-lock.yml b/.github/workflows/update-uv-lock.yml index b4078f6..1ba29fa 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