Skip to content

Commit 95469f9

Browse files
author
hhsecond
committed
redisai service
1 parent 19f327a commit 95469f9

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,30 @@ jobs:
99
tests:
1010
name: "Python ${{ matrix.python-version }}"
1111
runs-on: "ubuntu-latest"
12-
1312
strategy:
1413
fail-fast: false
1514
matrix:
1615
python-version: ["3.7", "3.8", "3.9"]
1716

17+
services:
18+
redisai:
19+
image: redislabs/redisai:edge-cpu-bionic
20+
# Set health checks to wait until redis has started
21+
options: >-
22+
--health-cmd "redis-cli ping"
23+
--health-interval 10s
24+
--health-timeout 5s
25+
--health-retries 5
1826
steps:
19-
- uses: "actions/checkout@v2"
20-
- uses: "actions/setup-python@v2"
27+
- name: Checkout Code
28+
uses: "actions/checkout@v2"
29+
- name: Setup Python
30+
uses: "actions/setup-python@v2"
2131
with:
22-
python-version: ${{ matrix.python-version }}
32+
python-version: ${{ matrix.python-version }}
33+
- name: Redis Connection Check
34+
env:
35+
REDIS_HOST: redis
36+
REDIS_PORT: 6379
37+
run: |
38+
redis-cli ping

0 commit comments

Comments
 (0)