summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/deploy.yml3
-rw-r--r--noxfile.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 4d53618..4da9bd8 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -19,6 +19,7 @@ on:
env:
LATEST_PY_VERSION: '3.10'
+ STRESS_TEST_MULTIPLIER: 5
jobs:
# Run tests for all supported requests versions
@@ -73,7 +74,7 @@ jobs:
run: |
source $VENV
nox -e test-current
- nox -e stress
+ nox -e stress -- ${{ env.STRESS_TEST_MULTIPLIER }}
# Deploy stable builds on tags only, and pre-release builds from manual trigger ("workflow_dispatch")
release:
diff --git a/noxfile.py b/noxfile.py
index 68348c5..737e266 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -68,9 +68,11 @@ def coverage(session):
def stress_test(session):
"""Run concurrency tests with a higher stress test multiplier"""
cmd = f'pytest {INTEGRATION_TESTS} -rs -k concurrency'
+ multiplier = session.posargs[0] if session.posargs else STRESS_TEST_MULTIPLIER
+
session.run(
*cmd.split(' '),
- env={'STRESS_TEST_MULTIPLIER': str(STRESS_TEST_MULTIPLIER)},
+ env={'STRESS_TEST_MULTIPLIER': str(multiplier)},
)