Skip to content

Commit

Permalink
Add redis server to unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
smathot committed Jan 20, 2024
1 parent 150e4f7 commit 2cd1698
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/run-unittests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]

services:
# Label used to access the service container
redis:
# Docker Hub image
image: redis
# Ports to map
ports:
- 6379:6379
# Set health checks to wait until redis is ready
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down

0 comments on commit 2cd1698

Please sign in to comment.