Skip to content

Add hatch test matrix for Python 3.8-3.13#613

Open
ParthSareen wants to merge 1 commit intomainfrom
add-hatch-test-matrix
Open

Add hatch test matrix for Python 3.8-3.13#613
ParthSareen wants to merge 1 commit intomainfrom
add-hatch-test-matrix

Conversation

@ParthSareen
Copy link
Member

Summary

  • Adds [[tool.hatch.envs.hatch-test.matrix]] configuration to pyproject.toml
  • Configures hatch to test against Python 3.8, 3.9, 3.10, 3.11, 3.12, and 3.13

Context

Related to #594 - the workflow matrix includes Python 3.8-3.13, but without the hatch matrix config, hatch test doesn't actually run tests against each version. This is why the dict[str, str] type hint (invalid in Python 3.8) didn't fail CI.

Test plan

  • CI runs tests on all Python versions 3.8-3.13
  • Verify with uvx hatch test -acp locally

- 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
@ParthSareen ParthSareen force-pushed the add-hatch-test-matrix branch from 6f8e0de to 2b77cd1 Compare January 10, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant