Skip to content

Commit 34bcf3d

Browse files
committed
ci: pin the declared floors before installing them wheel-only
1 parent 448682e commit 34bcf3d

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎.github/workflows/_checks.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ jobs:
8383
cache-dependency-glob: "**/pyproject.toml"
8484
- run: uv python install ${{ matrix.python-version }}
8585
- run: uv python pin ${{ matrix.python-version }}
86-
# --no-build so a floor with no wheel for this interpreter fails here instead of
87-
# quietly compiling its sdist; --no-install-project because that flag would refuse to
88-
# build this project too, and the tests import it from the checkout.
89-
- run: uv sync --all-extras --no-install-project --resolution lowest-direct --no-build
86+
- run: uv venv
87+
# Pinned with builds allowed, so a floor with no wheel fails the wheel-only install below.
88+
- run: uv pip compile pyproject.toml --all-extras --no-deps --resolution lowest-direct -o floors.txt
89+
- run: uv pip install -r pyproject.toml --all-extras --group dev --constraints floors.txt --no-build
9090
- run: uv run --no-sync pytest
9191
env:
9292
# The isolation tests spawn a fresh interpreter, which does not inherit pytest's sys.path.

‎pyproject.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ module-name = "httpware"
7272
module-root = "src"
7373

7474
[dependency-groups]
75-
# Floored so `uv sync --resolution lowest-direct` resolves a usable harness, not each name's first release.
7675
dev = [
7776
"pytest>=8",
7877
"pytest-cov>=5",

0 commit comments

Comments
 (0)