summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml5
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