Skip to content

Commit 6498794

Browse files
authored
ci: Reintroduce redis services at 6379 (#2395)
Signed-off-by: Achal Shah <[email protected]>
1 parent f591088 commit 6498794

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/master_only.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ jobs:
6666
env:
6767
OS: ${{ matrix.os }}
6868
PYTHON: ${{ matrix.python-version }}
69+
services:
70+
redis:
71+
image: redis
72+
ports:
73+
- 6379:6379
74+
options: >-
75+
--health-cmd "redis-cli ping"
76+
--health-interval 10s
77+
--health-timeout 5s
78+
--health-retries 5
6979
steps:
7080
- uses: actions/checkout@v2
7181
- name: Setup Python

.github/workflows/pr_integration_tests.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@ jobs:
8686
env:
8787
OS: ${{ matrix.os }}
8888
PYTHON: ${{ matrix.python-version }}
89+
services:
90+
redis:
91+
image: redis
92+
ports:
93+
- 6379:6379
94+
options: >-
95+
--health-cmd "redis-cli ping"
96+
--health-interval 10s
97+
--health-timeout 5s
98+
--health-retries 5
8999
steps:
90100
- uses: actions/checkout@v2
91101
with:
@@ -94,11 +104,6 @@ jobs:
94104
# code from the PR.
95105
ref: refs/pull/${{ github.event.pull_request.number }}/merge
96106
submodules: recursive
97-
- name: Start Redis
98-
uses: supercharge/[email protected]
99-
with:
100-
redis-version: ${{ matrix.redis-version }}
101-
redis-port: 12345
102107
- name: Setup Python
103108
uses: actions/setup-python@v2
104109
id: setup-python
@@ -149,6 +154,10 @@ jobs:
149154
run: |
150155
make compile-protos-go
151156
make install-python-ci-dependencies
157+
- name: Start Redis
158+
uses: supercharge/[email protected]
159+
with:
160+
redis-port: 12345
152161
- name: Setup Redis Cluster
153162
run: |
154163
docker pull vishnunair/docker-redis-cluster:latest

0 commit comments

Comments
 (0)