From d654ff9c7de52f813fb0504cd1cb02191af8af58 Mon Sep 17 00:00:00 2001 From: Max Ryabinin Date: Sat, 19 Oct 2024 11:39:47 +0200 Subject: [PATCH] Run tests in parallel --- .github/workflows/run-tests.yml | 2 +- requirements-dev.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 74d778bd0..f3fcfe1c5 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -39,7 +39,7 @@ jobs: run: | cd tests export HIVEMIND_MEMORY_SHARING_STRATEGY=file_descriptor - pytest --durations=0 --durations-min=1.0 -v + pytest --durations=0 --durations-min=1.0 -n auto -v build_and_test_p2pd: runs-on: ubuntu-latest timeout-minutes: 10 diff --git a/requirements-dev.txt b/requirements-dev.txt index 8398751aa..04030bfb9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,6 +2,7 @@ pytest==6.2.5 # see https://github.com/pytest-dev/pytest/issues/9621 pytest-forked pytest-asyncio==0.16.0 pytest-cov +pytest-xdist>=3.0.2 coverage==6.0.2 # see https://github.com/pytest-dev/pytest-cov/issues/520 tqdm scikit-learn