Add hatch test matrix for Python 3.10-3.13 and legacy tests for 3.8-3.9

- Configure hatch test matrix for Python 3.10-3.13 (coverage requires 3.10+)
- Add separate test-legacy workflow job for Python 3.8 and 3.9
- Tests verified passing on all versions locally
This commit is contained in:
ParthSareen 2026-01-09 23:16:31 -08:00
parent 60e7b2f9ce
commit 2b77cd1ec1
2 changed files with 15 additions and 0 deletions

View File

@ -16,6 +16,18 @@ jobs:
enable-cache: true
- run: uvx hatch test -acp
if: ${{ always() }}
test-legacy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9']
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Run tests on Python ${{ matrix.python-version }}
run: uv run --python ${{ matrix.python-version }} --with pytest --with pytest-anyio --with pytest-httpserver pytest tests/
lint:
runs-on: ubuntu-latest
steps:

View File

@ -32,6 +32,9 @@ extra-dependencies = [
'pytest-httpserver',
]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.10", "3.11", "3.12", "3.13"]
[tool.hatch.envs.hatch-static-analysis]
dependencies = [ 'ruff>=0.9.1' ]
config-path = 'none'