From 6d9b864e4039e05f63230bd2486dee02cce49801 Mon Sep 17 00:00:00 2001 From: Henri Rosten Date: Fri, 3 Jan 2025 15:58:10 +0200 Subject: [PATCH] Run pytest test in parallel Signed-off-by: Henri Rosten --- Makefile | 4 ++-- nix/packages.nix | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1a531bc..92931a1 100644 --- a/Makefile +++ b/Makefile @@ -21,14 +21,14 @@ pre-push: test check ## Run tests and flake checks $(call target_success,$@) test-ci: check ## Run CI tests - pytest -vx -k "not skip_in_ci" tests/ + pytest -n auto -vx -k "not skip_in_ci" tests/ $(call target_success,$@) check: clean nix --extra-experimental-features 'flakes nix-command' flake check test: ## Run tests - pytest -vx tests/ + pytest -n auto -vx tests/ $(call target_success,$@) release-asset: clean ## Build release asset diff --git a/nix/packages.nix b/nix/packages.nix index ab754f8..749012f 100644 --- a/nix/packages.nix +++ b/nix/packages.nix @@ -35,6 +35,7 @@ [ jsonschema pytest + pytest-xdist ] ++ prefix_path;