From 68bb667b19036c158b9a72922eb5787096693629 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Tue, 24 Feb 2026 09:09:30 -0800 Subject: [PATCH 1/2] Use uv-venv-lock-runner to respect uv.lock in tox The default uv-venv-runner uses uv pip install which ignores the lock file. Switch to uv-venv-lock-runner so tox environments use uv sync --locked and install the exact versions pinned in uv.lock. See https://github.com/tox-dev/tox-uv/issues/288 Co-Authored-By: Claude Opus 4.6 --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 38ea070b..9d1ca1fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -109,6 +109,7 @@ env_list = [ skip_missing_interpreters = false [tool.tox.env_run_base] +runner = "uv-venv-lock-runner" dependency_groups = [ "dev", ] From ee8d4a684060a6e8e9e73a569c1768656d0a2c70 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Tue, 24 Feb 2026 09:11:02 -0800 Subject: [PATCH 2/2] Simplify CI tox steps now that lock runner is used The uv-venv-lock-runner disregards --skip-pkg-install, making the two-step pattern (--notest then --skip-pkg-install) unnecessary. Consolidate into a single tox run step. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/test-libmaxminddb.yml | 7 +------ .github/workflows/test.yml | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-libmaxminddb.yml b/.github/workflows/test-libmaxminddb.yml index 351fef4d..954097f1 100644 --- a/.github/workflows/test-libmaxminddb.yml +++ b/.github/workflows/test-libmaxminddb.yml @@ -60,12 +60,7 @@ jobs: env: CFLAGS: "${{ env.CFLAGS }} -Werror -Wall -Wextra" - - name: Setup test suite - run: tox run -vv --notest --skip-missing-interpreters false - env: - TOX_GH_MAJOR_MINOR: ${{ matrix.env }} - - name: Run test suite - run: tox run --skip-pkg-install + run: tox run --skip-missing-interpreters false env: TOX_GH_MAJOR_MINOR: ${{ matrix.env }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b5a37e2..bb1ad60f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,13 +29,8 @@ jobs: - name: Install Python if: matrix.env != '3.14' run: uv python install --python-preference only-managed ${{ matrix.env }} - - name: Setup test suite - run: tox run -vv --notest --skip-missing-interpreters false - env: - MAXMINDDB_REQUIRE_EXTENSION: 1 - TOX_GH_MAJOR_MINOR: ${{ matrix.env }} - name: Run test suite - run: tox run --skip-pkg-install + run: tox run --skip-missing-interpreters false env: MAXMINDDB_REQUIRE_EXTENSION: 1 MM_FORCE_EXT_TESTS: 1