summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/deploy.yml2
-rw-r--r--noxfile.py7
2 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 686241b..8ca4e64 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -75,7 +75,7 @@ jobs:
source $VENV
pytest -x ${{ env.XDIST_ARGS }} tests/unit
pytest -x ${{ env.XDIST_ARGS }} tests/integration -k 'not concurrency'
- STRESS_TEST_MULTIPLIER=5 pytest tests/integration -k 'concurrency'
+ STRESS_TEST_MULTIPLIER=10 pytest tests/integration -k 'concurrency'
# 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 3b72f50..ddc94e0 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -20,6 +20,7 @@ CLEAN_DIRS = ['dist', 'build', join('docs', '_build'), join('docs', 'modules')]
UNIT_TESTS = join('tests', 'unit')
INTEGRATION_TESTS = join('tests', 'integration')
+STRESS_TEST_MULTIPLIER = 10
COVERAGE_ARGS = (
'--cov --cov-report=term --cov-report=html' # Generate HTML + stdout coverage report
)
@@ -56,9 +57,11 @@ def coverage(session):
@session(python=False, name='stress')
def stress_test(session):
"""Run concurrency tests with a higher stress test multiplier"""
- multiplier = session.posargs[0] if session.posargs else 5
cmd = f'pytest {INTEGRATION_TESTS} -rs -k concurrency'
- session.run(*cmd.split(' '), env={'STRESS_TEST_MULTIPLIER': str(multiplier)})
+ session.run(
+ *cmd.split(' '),
+ env={'STRESS_TEST_MULTIPLIER': str(STRESS_TEST_MULTIPLIER)},
+ )
@session(python=False)