Skip to content

Commit

Permalink
test:add valkey tests (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla authored Sep 26, 2024
1 parent 43d78a6 commit 3ecb5bd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
python -c "import fakeredis"
test:
name: >
redis tests
py:${{ matrix.python-version }},${{ matrix.redis-image }},
redis-py:${{ matrix.redis-py }},cov:${{ matrix.coverage }},
extra:${{matrix.extra}}
Expand All @@ -56,18 +57,23 @@ jobs:
fail-fast: false
matrix:
redis-image: [ "redis:6.2.14", "redis:7.0.15", "redis:7.4.0" ]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
python-version: [ "3.8", "3.9", "3.11", "3.12" ]
redis-py: [ "4.3.6", "4.6.0", "5.0.8", "5.1.0b7" ]
include:
- python-version: "3.12"
redis-image: "valkey/valkey:8.0"
redis-py: "5.0.8"
extra: "lupa"
hypothesis: true
- python-version: "3.12"
redis-image: "redis/redis-stack-server:6.2.6-v15"
redis-py: "5.0.8"
extra: true # json, bf, lupa, cf
extra: "json, bf, lupa, cf"
hypothesis: true
- python-version: "3.12"
redis-image: "redis/redis-stack-server:7.4.0-v0"
redis-py: "5.0.8"
extra: true # json, bf, lupa, cf
extra: "json, bf, lupa, cf"
coverage: true
hypothesis: true

Expand Down Expand Up @@ -106,7 +112,7 @@ jobs:
- name: Install json
if: ${{ matrix.extra }}
run: |
poetry run pip install "fakeredis[json,bf,cf,lua]"
poetry run pip install "fakeredis[${{ matrix.extra }}]"
- name: Get version
id: getVersion
shell: bash
Expand Down

0 comments on commit 3ecb5bd

Please sign in to comment.