From 222be9e017ebce3c73aeddc25c47dca326f14804 Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Thu, 12 Aug 2021 14:57:10 -0500 Subject: Parallelize unit tests per module instead of per function --- .github/workflows/build.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d81cb1..29c85c7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ on: env: LATEST_PY_VERSION: 3.9 COVERAGE_ARGS: '--cov --cov-report=term --cov-report=html' - COMPLEXITY_ARGS: '--show-complexity --average --order SCORE' + XDIST_ARGS: '--numprocesses=auto --dist=loadfile' jobs: # Run tests for each supported python version @@ -66,7 +66,7 @@ jobs: - name: Run tests run: | source $VENV - pytest -rs -x tests/unit --numprocesses=auto ${{ env.COVERAGE_ARGS }} + pytest -rs -x tests/unit ${{ env.XDIST_ARGS }} ${{ env.COVERAGE_ARGS }} pytest -rs -x tests/integration --cov-append ${{ env.COVERAGE_ARGS }} # Latest python version: send coverage report to coveralls @@ -79,7 +79,6 @@ jobs: pip install coveralls coveralls --service=github - # Run code analysis checks via pre-commit hooks analyze: runs-on: ubuntu-18.04 -- cgit v1.2.1