From 2690fabcdb9b6dc0ad78bc4e1d036a70f3717f83 Mon Sep 17 00:00:00 2001 From: SandObserver <260779319+SandObserver@users.noreply.github.com> Date: Fri, 16 Oct 2026 21:08:41 -0400 Subject: [PATCH] Run the test suite in parallel with pytest-xdist --- .github/workflows/ci.yml | 2 +- .pre-commit-config.yaml | 2 +- CONTRIBUTING.md | 2 +- pyproject.toml | 1 + uv.lock | 24 ++++++++++++++++++++++++ 5 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d40518..e0d9b79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: - run: uv run ruff format --check . - run: uv run ruff check . - run: uv run mypy - - run: uv run pytest + - run: uv run pytest -n auto workflows: runs-on: ubuntu-24.04 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f4b6d93..e19ba9d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: types: [python] - id: pytest name: pytest - entry: uv run pytest + entry: uv run pytest -n auto language: system pass_filenames: false always_run: true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0629d50..d1fe51a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -73,7 +73,7 @@ Run each with `uv run python tools/