Skip to content

Version coverage attempt that is lighter weight #6

Version coverage attempt that is lighter weight

Version coverage attempt that is lighter weight #6

name: Redis Coverage 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:
redis-version: ['5.0', '6.0', '6.2', '7.0']
python-version: ['3.7', '3.11']
redis-url: ["redis://localhost:6379"]
resp: ["2"]
include:
- redis-version: 7.0
redis-url: "redis://localhost:6379?protocol=3"
resp: "3"
python-version: '3.7'
- redis-version: 7.0
redis-url: "redis://localhost:6379?protocol=3"
resp: "3"
python-version: '3.11'
- redis-version: 7.0
python-version: '3.7'
- redis-version: 7.0
python-version: '3.11'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
name: redis ${{matrix.redis-version}} [resp ${{matrix.resp}}] [py ${{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
pip install -r requirements.txt
pytest -m "not onlycluster and not redismod and not ssl and not replica" --redis-url=${{matrix.redis-url}}