dev: run tests in parallel with pytest-xdist (#8473)

This commit is contained in:
bestxmg authored and GitHub committed 2026-09-23 19:00:39 +00:00
1 parent af5464c5e0
commit 6aefff210e
6 files changed
+61 -11

No files matched your search

+3 -2
View File
@@ -106,9 +106,10 @@ tasks:
- uv run mypy mealie
py:test:
desc: runs python tests (support args after '--')
desc: runs python tests in parallel across CPU cores (support args after '--')
cmds:
- uv run pytest {{ .CLI_ARGS }}
# --dist loadfile: each test file runs in order on a single worker
- uv run pytest -n auto --dist loadfile {{ .CLI_ARGS }}
py:format:
desc: runs python code formatter