Skip to content

Commit 4fd7965

Browse files
committed
ci(deps): run lowest-dependency check in the PR unit job
1 parent 06ddc7f commit 4fd7965

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

‎.github/workflows/dependency-floors.yaml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Dependency Floors
22

33
on:
4-
pull_request:
5-
paths:
6-
- pyproject.toml
7-
- .github/workflows/dependency-floors.yaml
84
schedule:
95
- cron: '0 8 * * 1'
106
workflow_dispatch:

‎.github/workflows/pr.yaml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@ jobs:
3838
- name: Pytest unit • ${{ matrix.os }}, ${{ matrix.python-version }}
3939
run: python -m pytest tests/unit
4040

41+
- name: Install uv
42+
run: python -m pip install uv
43+
44+
- name: Resolve lowest dependencies as wheels
45+
run: |
46+
uv pip compile pyproject.toml --resolution lowest-direct --only-binary :all: --output-file lowest.txt
47+
48+
- name: Install lowest dependencies
49+
run: uv pip install --system --reinstall --resolution lowest-direct -e ".[testing]"
50+
51+
- name: Pytest unit at lowest dependencies • ${{ matrix.os }}, ${{ matrix.python-version }}
52+
run: python -m pytest tests/unit
53+
4154
discover-systems:
4255
name: Discover regression systems
4356
runs-on: ubuntu-26.04

‎docs/developer_guide.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ bound (floor) is the oldest release CodeEntropy is known to work with, so that i
181181
stays installable alongside other scientific packages. Floors are only raised
182182
when the code needs a newer release. Upper bounds are widened by Renovate.
183183

184-
The ``dependency-floors.yaml`` workflow checks this on pull requests that change
185-
``pyproject.toml`` and weekly. It checks that the lowest allowed versions resolve
186-
to installable wheels on each platform and Python version, and that the unit tests
184+
The unit job in the pull request workflow and the weekly ``dependency-floors.yaml``
185+
workflow check this. They check that the lowest allowed versions resolve to
186+
installable wheels on each platform and Python version, and that the unit tests
187187
pass with them installed.
188188

189189
Run the same checks locally with `uv <https://docs.astral.sh/uv/>`_::

0 commit comments

Comments
 (0)