summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2022-02-13 11:25:47 -0600
committerJordan Cook <jordan.cook@pioneer.com>2022-02-13 11:29:35 -0600
commit04ff30b8d95beef829031116a28faebd7ac51021 (patch)
tree58b89ea69eee839cdb660150c9c4d1dda225fdcc /.github
parentebb5f697674ce04178286f6c423bfe6d0cd5ebab (diff)
downloadrequests-cache-04ff30b8d95beef829031116a28faebd7ac51021.tar.gz
Adjust stress test settings for pre-deploy tests
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml2
-rw-r--r--.github/workflows/deploy.yml9
2 files changed, 6 insertions, 5 deletions
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: