Skip to content

Commit d113210

Browse files
committed
DRAFT: Free threading testing with pytest-run-parallel
1 parent 2698343 commit d113210

File tree

4 files changed

+188
-149
lines changed

4 files changed

+188
-149
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
15+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.14t']
1616

1717
steps:
1818
- uses: actions/checkout@v5

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ dev = [
4646
"pytest",
4747
"pytest-cov",
4848
"pytest-django",
49+
"pytest-run-parallel",
4950
]
5051

5152
[tool.uv]

tox.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ deps =
2323
pep8
2424
pyflakes
2525
pytest
26-
pytest-django
2726
pytest-cov
27+
pytest-django
28+
pytest-run-parallel
2829

29-
commands = {posargs:python -m pytest}
30+
commands = {posargs:python -m pytest} --iterations=8 --parallel-threads=auto
3031

3132
[gh-actions]
3233
python =
@@ -37,3 +38,4 @@ python =
3738
3.12: py312
3839
3.13: py313
3940
3.14: py314
41+
3.14t: py314t

0 commit comments

Comments
 (0)