summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChayim I. Kirshen <c@kirshen.com>2023-05-15 14:30:52 +0300
committerChayim I. Kirshen <c@kirshen.com>2023-05-15 14:30:52 +0300
commit095477072342144a48f73951006c7cefe04cd880 (patch)
tree69a9df1b5144dc0db28f415f2148475d5f086916
parentdf4776174d08d38c4addf4335ac154bb6a67aa5c (diff)
downloadredis-py-095477072342144a48f73951006c7cefe04cd880.tar.gz
redis versions via the 5.x branch
-rw-r--r--.github/workflows/version_coverage.yml51
1 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/version_coverage.yml b/.github/workflows/version_coverage.yml
new file mode 100644
index 0000000..050e202
--- /dev/null
+++ b/.github/workflows/version_coverage.yml
@@ -0,0 +1,51 @@
+name: Redis Converage Matrix
+
+on:
+ push:
+ paths-ignore:
+ - 'docs/**'
+ - '**/*.rst'
+ - '**/*.md'
+ branches:
+ - master
+ - '[0-9].[0-9]'
+ pull_request:
+ branches:
+ - master
+ - '[0-9].[0-9]'
+
+permissions:
+ contents: read
+
+jobs:
+
+ run-tests:
+ services:
+ redis:
+ image: redis:${{matrix.redis-version}}
+ ports:
+ - 6379:6379
+ runs-on: ubuntu-latest
+ timeout-minutes: 30
+ strategy:
+ max-parallel: 15
+ fail-fast: false
+ matrix:
+ python-version: ['3.7', '3.11']
+ redis-version: ['5.0', '6.0', '6.2', '7.0']
+
+ env:
+ ACTIONS_ALLOW_UNSECURE_COMMANDS: true
+ name: redis ${{matrix.redis-version}} ${{matrix.python-version}}
+
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python-version }}
+ cache: 'pip'
+ - name: run tests
+ run: |
+ pip install -U setuptools wheel
+ pip install -r dev_requirements.txt
+ pytest -m "not onlycluster and not redismod" \ No newline at end of file