Skip to content

Commit

Permalink
add redis service
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Dec 8, 2020
1 parent c98701d commit 607b11e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@ jobs:
py: [3.9, 3.8, 3.7]
fail-fast: false

# Service containers to run with `runner-job`
services:
# Label used to access the service container
redis:
# Docker Hub image
image: redis
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps port 6379 on service container to the host
- 6379:6379

steps:
- uses: actions/checkout@v2
with:
Expand Down

0 comments on commit 607b11e

Please sign in to comment.