diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 2 | ||||
-rw-r--r-- | .github/workflows/deploy.yml | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a11c8fe..31403a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ on: branches: [master] workflow_dispatch: env: - LATEST_PY_VERSION: 3.9 + LATEST_PY_VERSION: '3.10' COVERAGE_ARGS: '--cov --cov-report=term --cov-report=xml' XDIST_ARGS: '--numprocesses=auto --dist=loadfile' diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6c0d06d..1ff4976 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,7 +18,8 @@ on: default: '' env: - LATEST_PY_VERSION: 3.9 + LATEST_PY_VERSION: '3.10' + XDIST_ARGS: '--numprocesses=auto --dist=loadfile' jobs: # Run tests for all supported requests versions @@ -72,9 +73,9 @@ jobs: - name: Run tests run: | source $VENV - pytest --numprocesses=auto tests/unit - pytest tests/integration - STRESS_TEST_MULTIPLIER=5 pytest tests/integration/ -k 'multithreaded' + pytest -x ${{ env.XDIST_ARGS }} tests/unit + pytest -x ${{ env.XDIST_ARGS }} tests/integration -k 'not multithreaded' + STRESS_TEST_MULTIPLIER=5 pytest tests/integration -k 'multithreaded' # Deploy stable builds on tags only, and pre-release builds from manual trigger ("workflow_dispatch") release: |