Skip to content

Commit 5e7152b

Browse files
authored
test against multiple redis versions (#340)
* test against multiple redis versions * fix matrix
1 parent d6ea422 commit 5e7152b

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: set up python
2020
uses: actions/setup-python@v4
2121
with:
22-
python-version: 3.9
22+
python-version: '3.10'
2323

2424
- run: pip install -r requirements/linting.txt -r requirements/setup.txt pre-commit
2525

@@ -34,30 +34,38 @@ jobs:
3434
- name: set up python
3535
uses: actions/setup-python@v4
3636
with:
37-
python-version: 3.9
37+
python-version: '3.10'
3838

3939
- run: pip install -r requirements/docs.txt -r requirements/setup.txt
4040
- run: pip install .
4141

4242
- run: make docs
4343

4444
test:
45-
name: test py${{ matrix.python-version }} on ${{ matrix.os }}
45+
name: test py${{ matrix.python }} with redis:${{ matrix.redis }} on ${{ matrix.os }}
4646
strategy:
4747
fail-fast: false
4848
matrix:
4949
os: [ubuntu]
50-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11-dev']
50+
python: ['3.7', '3.8', '3.9', '3.10', '3.11-dev']
51+
redis: ['5']
52+
include:
53+
- python: '3.10'
54+
redis: '6'
55+
os: 'ubuntu'
56+
- python: '3.10'
57+
redis: '7'
58+
os: 'ubuntu'
5159

5260
env:
53-
PYTHON: ${{ matrix.python-version }}
61+
PYTHON: ${{ matrix.python }}
5462
OS: ${{ matrix.os }}
5563

5664
runs-on: ${{ format('{0}-latest', matrix.os) }}
5765

5866
services:
5967
redis:
60-
image: redis:5
68+
image: redis:${{ matrix.redis }}
6169
ports:
6270
- 6379:6379
6371
options: --entrypoint redis-server
@@ -68,7 +76,7 @@ jobs:
6876
- name: set up python
6977
uses: actions/setup-python@v4
7078
with:
71-
python-version: ${{ matrix.python-version }}
79+
python-version: ${{ matrix.python }}
7280

7381
- run: pip install -r requirements/testing.txt -r requirements/setup.txt
7482

@@ -93,7 +101,7 @@ jobs:
93101
- name: set up python
94102
uses: actions/setup-python@v4
95103
with:
96-
python-version: '3.8'
104+
python-version: '3.10'
97105

98106
- name: install
99107
run: |

0 commit comments

Comments
 (0)