Skip to content

Commit

Permalink
slow tests only on some scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed May 9, 2023
1 parent 78a1f39 commit 4a0d40d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,17 @@ jobs:
redis-py: [ "4.3.6", "4.5.5" ]
include:
- python-version: "3.11"
redis-image: "redis:6.2.10"
redis-image: "redis:6.2.12"
redis-py: "4.5.5"
lupa: true
hypothesis: true
- python-version: "3.11"
redis-image: "redis/redis-stack:7.0.6-RC3"
redis-py: "4.5.5"
lupa: true
json: true
coverage: true
hypothesis: true

permissions:
pull-requests: write
Expand Down Expand Up @@ -108,10 +110,13 @@ jobs:
run: |
VERSION=$(poetry version -s --no-ansi -n)
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Set tests to run
run: echo "PYTEST_PARAMS=-m \"not slow\"" >> $GITHUB_ENV
if: ${{ !matrix.hypothesis }}
- name: Test without coverage
if: ${{ !matrix.coverage }}
run: |
poetry run pytest -v
run: |
poetry run pytest -v $PYTEST_PARAMS
- name: Test with coverage
if: ${{ matrix.coverage }}
uses: ./.github/actions/test-coverage
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mkdocs==1.4.3
mkdocs-material==9.1.9
mkdocs-material==9.1.11

0 comments on commit 4a0d40d

Please sign in to comment.