From 0ed4cddb6d495e9b1e1ada438fd4fdf90d2d7f3b Mon Sep 17 00:00:00 2001 From: Alex Sorokoumov Date: Sat, 25 Jul 2026 15:43:10 -0700 Subject: [PATCH] Fix setup-uv allowlist failure in CI --- .github/workflows/python-app.yml | 6 ++++-- tox.ini | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 1c03584..4bc40b6 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -45,9 +45,10 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install uv - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 + uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 with: python-version: ${{ matrix.python-version }} + prune-cache: true - name: Install the project run: uv sync --all-extras --dev @@ -76,9 +77,10 @@ jobs: python-version: "3.10" - name: Install uv - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 + uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 with: python-version: "3.14" + prune-cache: true - name: Install the project run: uv sync --all-extras --dev diff --git a/tox.ini b/tox.ini index 62beada..63bdc9e 100644 --- a/tox.ini +++ b/tox.ini @@ -47,7 +47,7 @@ setenv = lint: FLAKE8_OPTS = lint: UV_OPTS = --quiet commands_pre = - uv pip install -e ".[dev]" {env:UV_OPTS} + uv sync --active --locked --all-extras {env:UV_OPTS} commands = ruff check {env:RUFF_OPTS} --diff . autoflake {env:AUTOFLAKE_OPTS} --check .