From 65a149874c0f9aacbc7050595b5d7135b44c9f50 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sun, 27 Sep 2026 17:51:10 +0300 Subject: [PATCH] ci: pin the declared floors before installing them wheel-only --- .github/workflows/_checks.yml | 8 ++++---- pyproject.toml | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/_checks.yml b/.github/workflows/_checks.yml index 4bbbf35..1087bd7 100644 --- a/.github/workflows/_checks.yml +++ b/.github/workflows/_checks.yml @@ -69,10 +69,10 @@ jobs: cache-dependency-glob: "**/pyproject.toml" - run: uv python install ${{ matrix.python-version }} - run: uv python pin ${{ matrix.python-version }} - # --no-build: a floor with no wheel for this interpreter must fail here rather - # than quietly compile its sdist. Without it the leg passes on a floor that - # still breaks anyone installing into an image with no build toolchain. - - 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 d8dfa0d..96e9ce8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,8 +30,6 @@ Changelog = "https://github.com/modern-python/modern-di-faststream/releases" [dependency-groups] dev = [ - # Floored so `uv sync --resolution lowest-direct` resolves a usable harness: an - # unbounded name there resolves to the project's first-ever release. "faststream[nats]>=0.7,<0.8", "pytest>=8", "pytest-cov>=5",