diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fee8ec3..2bb710c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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: diff --git a/pyproject.toml b/pyproject.toml index c58f323..160d531 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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'