diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2022-02-22 19:14:53 -0600 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-02-22 19:18:07 -0600 |
commit | fe82501662a1a502eb02ba132965596bceebed43 (patch) | |
tree | d0c55ca2a0752f455a2ce8ce769b21f8fabbba3d | |
parent | 0bd1446c8c733a69c4accaf78f00f77c68a1f256 (diff) | |
download | requests-cache-fe82501662a1a502eb02ba132965596bceebed43.tar.gz |
Increase stress test multiplier to 10 for pre-deployment tests
-rw-r--r-- | .github/workflows/deploy.yml | 2 | ||||
-rw-r--r-- | noxfile.py | 7 |
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: @@ -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) |