From db92475a974354497595a2dc88c83010d0a4c3d2 Mon Sep 17 00:00:00 2001 From: jmeridth Date: Wed, 11 Mar 2026 01:09:37 -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 4189114..2810933 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 @@ -26,6 +30,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 ad05cc6..afcb5fa 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 @@ -25,6 +29,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 b1d051f..3812eaa 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