From c635493104fe7f87e4ee4e885b0b39040f006338 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 11 Feb 2021 12:27:00 +0200 Subject: [PATCH] tests: don't limit the number of pytest workers (#5441) We used to do this because of gitpython leaks. --- .github/workflows/tests.yaml | 2 +- tests/__main__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 97ca5fb72..c41f68108 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -80,7 +80,7 @@ jobs: mkdir -p scripts/ci echo "$GS_CREDS_JSON" > scripts/ci/gcp-creds.json - name: run tests - run: python -m tests --all --cov-report=xml --cov-report=term --tap-combined + run: python -m tests --all --cov-report=xml --cov-report=term --tap-combined -n=4 - name: upload coverage report uses: codecov/codecov-action@v1.0.13 with: diff --git a/tests/__main__.py b/tests/__main__.py index aaa4915a1..c36e707d9 100644 --- a/tests/__main__.py +++ b/tests/__main__.py @@ -16,5 +16,5 @@ os.putenv("DVC_HOME", REPO_ROOT) params = " ".join(sys.argv[1:]) -cmd = "pytest -v -n=4 --cov=dvc --durations=0 {params}".format(params=params) +cmd = f"pytest -v -n=auto --dist loadscope --cov=dvc --durations=0 {params}" check_call(cmd, shell=True)