summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-04-20 22:07:01 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-04-20 22:11:31 -0500
commitbf09dcbe4422ae030a34275ef27066d3601e98ac (patch)
tree9b8f42e4e283d6dd32b6aace567d4c4f1119e106 /.github
parentff25727eec93461ab507849810c45e97147bdd85 (diff)
downloadrequests-cache-bf09dcbe4422ae030a34275ef27066d3601e98ac.tar.gz
Run multi-threaded tests for all backends, and run with more threads & iterations for merges to master
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 05fa56a..36e2423 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -69,6 +69,11 @@ jobs:
pytest --numprocesses=auto tests/unit
pytest tests/integration
+ # Run longer stress tests if this is a release or merge to master
+ - name: Run stress tests
+ if: startsWith(github.ref, 'refs/tags/v') || endsWith(github.ref, '/master')
+ run: STRESS_TEST_MULTIPLIER=5 pytest tests/integration/test_thread_safety.py
+
# Run code analysis checks
analyze:
runs-on: ubuntu-18.04
@@ -100,7 +105,7 @@ jobs:
# Deploy pre-release builds from dev branch, and stable builds on tags only
release:
needs: [test, analyze]
- if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/dev'
+ if: startsWith(github.ref, 'refs/tags/v') || endsWith(github.ref, '/dev')
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2