Skip to content

Commit

Permalink
Add redis version 7 to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Jun 14, 2024
1 parent 1ca50f1 commit b02e4af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
redis-version: ["6", "7"]

steps:
- uses: actions/checkout@v4
Expand All @@ -25,14 +26,16 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install -e .[test]
env:
REDIS_VERSION: ${{ matrix.redis-version }}
- name: Test CLI
run: |
redis-canal --help
- name: Test with pytest
run: |
pytest -vv --cov-config=.coveragerc --cov-report term-missing --cov=redis_canal/ tests
- name: Upload coverage reports to Codecov
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.10' && matrix.redis-version == '7'
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit b02e4af

Please sign in to comment.