Skip to content

Commit

Permalink
Adjust stress test settings for pre-deploy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JWCook committed Feb 13, 2022
1 parent ebb5f69 commit 04ff30b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -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'

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 04ff30b

Please sign in to comment.