-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maint: add Dragonfly test support (#318)
- Loading branch information
Showing
20 changed files
with
388 additions
and
210 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
name: Test Dragonfly | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
|
||
concurrency: | ||
group: dragon-fly-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
tests: | ||
- "test_json" | ||
- "test_mixins" | ||
- "test_stack" | ||
- "test_connection.py" | ||
- "test_asyncredis.py" | ||
- "test_general.py" | ||
- "test_scan.py" | ||
- "test_zadd.py" | ||
- "test_translations.py" | ||
- "test_sortedset_commands.py" | ||
permissions: | ||
pull-requests: write | ||
services: | ||
redis: | ||
image: docker.dragonflydb.io/dragonflydb/dragonfly:latest | ||
ports: | ||
- 6380:6379 | ||
options: >- | ||
--health-cmd "redis-cli ping" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
cache-dependency-path: poetry.lock | ||
python-version: 3.12 | ||
- name: Install dependencies | ||
env: | ||
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring | ||
run: | | ||
python -m pip --quiet install poetry | ||
echo "$HOME/.poetry/bin" >> $GITHUB_PATH | ||
poetry install | ||
poetry run pip install "fakeredis[json,bf,cf,lua]" | ||
- name: Test without coverage | ||
run: | | ||
poetry run pytest test/${{ matrix.tests }} \ | ||
--html=report-${{ matrix.tests }}.html \ | ||
--self-contained-html \ | ||
-v | ||
- name: Upload Tests Result | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: tests-result-${{ matrix.tests }} | ||
path: report-${{ matrix.tests }}.html | ||
|
||
upload-results: | ||
needs: test | ||
if: always() | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Collect Tests Result | ||
uses: actions/upload-artifact/merge@v4 | ||
with: | ||
delete-merged: true |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
mkdocs==1.6.0 | ||
mkdocs-material==9.5.31 | ||
mkdocs-material==9.5.33 |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Oops, something went wrong.