From 54e4da12501253f375714e57ef2610835c618e8d Mon Sep 17 00:00:00 2001 From: Czar Echavez Date: Wed, 12 Jul 2023 12:04:26 +0100 Subject: [PATCH] #1595: run tests in parallel --- .azure/azure-ci-build-pipeline.yaml | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.azure/azure-ci-build-pipeline.yaml b/.azure/azure-ci-build-pipeline.yaml index 066c66b2..0bb03594 100644 --- a/.azure/azure-ci-build-pipeline.yaml +++ b/.azure/azure-ci-build-pipeline.yaml @@ -86,5 +86,5 @@ stages: displayName: 'Perform PrimAITE Setup' - script: | - pytest tests/ + pytest -n 4 displayName: 'Run tests' diff --git a/pyproject.toml b/pyproject.toml index 86418eaa..c5c351a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,6 +58,7 @@ dev = [ "pip-licenses==4.3.0", "pre-commit==2.20.0", "pytest==7.2.0", + "pytest-xdist==3.3.1", "pytest-cov==4.0.0", "pytest-flake8==1.1.1", "setuptools==66",