diff --git a/.github/workflows/_checks.yml b/.github/workflows/_checks.yml index 0e05241..1952f48 100644 --- a/.github/workflows/_checks.yml +++ b/.github/workflows/_checks.yml @@ -43,6 +43,36 @@ jobs: run: uv run --no-sync python -c "import sys, modern_di_aiohttp; assert not sys._is_gil_enabled(), 'GIL is enabled on a t-build'" - run: just test-ci + floors: + # Every other job resolves newest, so the declared floors are a claim nothing installs. + # This one resolves the bottom of each range, on every matrix entry: wheel coverage is + # per interpreter, so two interpreters resolving the same versions can still disagree + # on whether those versions install. + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: + - "3.10" + - "3.11" + - "3.12" + - "3.13" + - "3.14" + - "3.14t" + steps: + - uses: actions/checkout@v6 + - uses: astral-sh/setup-uv@v8.2.0 + with: + enable-cache: true + 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 run --no-sync pytest + links: runs-on: ubuntu-latest steps: diff --git a/pyproject.toml b/pyproject.toml index 54d6c0b..9b801f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,12 @@ classifiers = [ "Typing :: Typed", "Topic :: Software Development :: Libraries", ] -dependencies = ["aiohttp>=3.9,<4", "modern-di>=3.1.1,<4"] +dependencies = [ + # pytest-aiohttp 1.1 requires aiohttp 3.11, and aiohttp ships no cp314 wheel before 3.13. + "aiohttp>=3.11,<4; python_version < '3.14'", + "aiohttp>=3.13,<4; python_version >= '3.14'", + "modern-di>=3.1.1,<4", +] version = "0" [project.urls] @@ -29,11 +34,12 @@ Issues = "https://github.com/modern-python/modern-di-aiohttp/issues" Changelog = "https://github.com/modern-python/modern-di-aiohttp/releases" [dependency-groups] +# Floored so `uv sync --resolution lowest-direct` resolves a usable harness, not each name's first release. dev = [ - "pytest", - "pytest-cov", - "pytest-asyncio", - "pytest-aiohttp", + "pytest>=8", + "pytest-cov>=5", + "pytest-asyncio>=0.24", + "pytest-aiohttp>=1.1", ] lint = [ "ty",