Skip to content

Commit 5a3175e

Browse files
authored
Run CI once for each matrix job (#6)
* Run CI once for each matrix job * add local matrix
1 parent d1f8ff9 commit 5a3175e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939
python-version: ${{ matrix.python-version }}
4040

4141
- name: Run pytest
42-
run: hatch run test:tests-cov
42+
run: hatch run test.py${{ matrix.python-version }}:tests-cov

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ features = ["test", "lint"]
3737

3838
[tool.hatch.envs.test]
3939
features = ["test"]
40+
[[tool.hatch.envs.test.matrix]]
41+
python = ["3.10", "3.11", "3.12", "3.13"]
4042

4143
[tool.hatch.envs.test.scripts]
4244
tests = "pytest {args:tests}"

0 commit comments

Comments
 (0)