From 4bcfc7eb6b3da24add2b55c2c6d681b627453e1a Mon Sep 17 00:00:00 2001 From: Patrick Ogenstad Date: Fri, 28 Nov 2025 10:11:09 +0100 Subject: [PATCH] Validate uv.lock in CI --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe02e8fc..4154a19e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,6 +119,28 @@ jobs: env: SHELLCHECK_OPTS: --exclude=SC2086 --exclude=SC2046 --exclude=SC2004 --exclude=SC2129 + uv-lock-check: + if: | + needs.files-changed.outputs.uv_files == 'true' || + needs.files-changed.outputs.github_workflows == 'true' + needs: + - files-changed + - prepare-environment + runs-on: "ubuntu-latest" + timeout-minutes: 5 + steps: + - name: "Check out repository code" + uses: "actions/checkout@v5" + - name: "Set up Python" + uses: "actions/setup-python@v6" + with: + python-version: "3.12" + - name: "Install uv" + uses: astral-sh/setup-uv@v7 + with: + version: ${{ needs.prepare-environment.outputs.UV_VERSION }} + - name: "Validate pyproject.toml and consistency with uv.lock" + run: uv lock --locked --offline documentation: defaults: