diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2021-08-12 14:57:10 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2021-08-12 15:27:00 -0500 |
commit | 222be9e017ebce3c73aeddc25c47dca326f14804 (patch) | |
tree | 062c78b3ffd95cab78c3d9e6a0f60216eaaa7a68 /.github | |
parent | 0c29101d1c9532936e6548265accb14e335064f5 (diff) | |
download | requests-cache-222be9e017ebce3c73aeddc25c47dca326f14804.tar.gz |
Parallelize unit tests per module instead of per function
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 5 |
1 files changed, 2 insertions, 3 deletions
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 |