From 04ff30b8d95beef829031116a28faebd7ac51021 Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Sun, 13 Feb 2022 11:25:47 -0600 Subject: Adjust stress test settings for pre-deploy tests --- .github/workflows/build.yml | 2 +- .github/workflows/deploy.yml | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to '.github') 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: -- cgit v1.2.1