Skip to content

Commit 2b77cd1

Browse files
committed
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
1 parent 60e7b2f commit 2b77cd1

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ jobs:
1616
enable-cache: true
1717
- run: uvx hatch test -acp
1818
if: ${{ always() }}
19+
test-legacy:
20+
runs-on: ubuntu-latest
21+
strategy:
22+
matrix:
23+
python-version: ['3.8', '3.9']
24+
steps:
25+
- uses: actions/checkout@v6
26+
- uses: astral-sh/setup-uv@v5
27+
with:
28+
enable-cache: true
29+
- name: Run tests on Python ${{ matrix.python-version }}
30+
run: uv run --python ${{ matrix.python-version }} --with pytest --with pytest-anyio --with pytest-httpserver pytest tests/
1931
lint:
2032
runs-on: ubuntu-latest
2133
steps:

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ extra-dependencies = [
3232
'pytest-httpserver',
3333
]
3434

35+
[[tool.hatch.envs.hatch-test.matrix]]
36+
python = ["3.10", "3.11", "3.12", "3.13"]
37+
3538
[tool.hatch.envs.hatch-static-analysis]
3639
dependencies = [ 'ruff>=0.9.1' ]
3740
config-path = 'none'

0 commit comments

Comments
 (0)