From 78cc2a13155ca86b256cd18a8a394d2c61280c99 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sun, 27 Sep 2026 17:51:17 +0300 Subject: [PATCH] ci: pin the declared floors before installing them wheel-only --- .github/workflows/_checks.yml | 8 ++++---- pyproject.toml | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/_checks.yml b/.github/workflows/_checks.yml index 0cbd648..f46a227 100644 --- a/.github/workflows/_checks.yml +++ b/.github/workflows/_checks.yml @@ -68,10 +68,10 @@ jobs: cache-dependency-glob: "**/pyproject.toml" - run: uv python install ${{ matrix.python-version }} - run: uv python pin ${{ matrix.python-version }} - # --no-build so a floor with no wheel for this interpreter fails here instead of - # quietly compiling its sdist; --no-install-project because that flag would refuse to - # build this project too, and the tests import it from the checkout. - - run: uv sync --all-extras --no-install-project --resolution lowest-direct --no-build + - run: uv venv + # Pinned with builds allowed, so a floor with no wheel fails the wheel-only install below. + - run: uv pip compile pyproject.toml --all-extras --no-deps --resolution lowest-direct -o floors.txt + - run: uv pip install -r pyproject.toml --all-extras --group dev --constraints floors.txt --no-build - run: uv run --no-sync pytest links: diff --git a/pyproject.toml b/pyproject.toml index 5f44da1..88b4204 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,6 @@ Issues = "https://github.com/modern-python/modern-di-flask/issues" Changelog = "https://github.com/modern-python/modern-di-flask/releases" [dependency-groups] -# Floored so `uv sync --resolution lowest-direct` resolves a usable harness, not each name's first release. dev = [ "pytest>=8", "pytest-cov>=5",