Version coverage attempt that is lighter weight #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-pre-7: | |
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'] | |
python-version: ['3.7', '3.11'] | |
redis-url: ["redis://localhost:6379"] | |
resp: ["2"] | |
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}} | |
run-tests-7-plus: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
max-parallel: 15 | |
fail-fast: false | |
matrix: | |
redis-version: ['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: | |
- run: | | |
docker run -p 6379:6379 -d redis:${{matrix.redis-version}} --enable-module-command yes --enable-debug-command yes | |
- 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}} |