Skip to content

Commit 607400c

Browse files
authored
ci: test floors the CI10 way and collapse the wheel-only floors (#158)
1 parent 10472f0 commit 607400c

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

‎.github/workflows/_checks.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
'**/*.md'
3737
3838
floors:
39-
# The declared dependency floors, installed. Every other job resolves highest, so the
39+
# The declared floors, installed exactly on 3.11 and as the lowest versions with a wheel
40+
# on every other entry (CI10). Every other job resolves highest, so the
4041
# bottom of the range is otherwise never exercised and can rot unnoticed -- a PyYAML
4142
# floor that could not build on 3.14 shipped for exactly that reason (issue 126).
4243
# Binary-only, because the pitch is minimal images: a floor reachable only by
@@ -57,7 +58,10 @@ jobs:
5758
cache-dependency-glob: "**/pyproject.toml"
5859
- run: uv python install ${{ matrix.python-version }}
5960
- run: uv venv --python ${{ matrix.python-version }}
60-
- run: uv pip compile pyproject.toml --all-extras --no-deps --resolution lowest-direct -o floors.txt
61+
- if: matrix.python-version == '3.11'
62+
run: uv pip compile pyproject.toml --all-extras --no-deps --resolution lowest-direct -o floors.txt
63+
- if: matrix.python-version != '3.11'
64+
run: uv pip compile pyproject.toml --all-extras --resolution lowest-direct --no-build -o floors.txt
6165
- run: uv pip install -r pyproject.toml --all-extras --constraints floors.txt --no-build
6266
- run: uv run --no-project python -c "import compose2pod, yaml; print(yaml.__version__)"
6367

‎pyproject.toml‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,7 @@ classifiers = [
2222
version = "0"
2323

2424
[project.optional-dependencies]
25-
# Split per interpreter because PyYAML's wheel coverage is: 6.0.1 is the first with a cp312
26-
# wheel, 6.0.2 the first with cp313 and 6.0.3 the first with cp314, whose sdist 6.0 cannot
27-
# build. An older interpreter has no reason to lose the lower floor.
28-
yaml = [
29-
"PyYAML>=6; python_version < '3.12'",
30-
"PyYAML>=6.0.1; python_version == '3.12'",
31-
"PyYAML>=6.0.2; python_version == '3.13'",
32-
"PyYAML>=6.0.3; python_version >= '3.14'",
33-
]
25+
yaml = ["PyYAML>=6"]
3426

3527
[project.scripts]
3628
compose2pod = "compose2pod.cli:main"

0 commit comments

Comments
 (0)