Skip to content

Commit 4c6fd51

Browse files
committed
Add redis workflow job
1 parent 34aa8f7 commit 4c6fd51

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build-python.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,33 @@ jobs:
6363
- name: "Install wheel"
6464
run: ${PYBIN}/pip install ./dist/*.whl
6565

66+
- name: "Install Redis"
67+
run: |
68+
yum install -y epel-release
69+
yum install -y redis
70+
71+
- name: "Start Redis"
72+
run: |
73+
redis-server --daemonize yes
74+
75+
- name: "Wait for Redis to be ready"
76+
run: |
77+
for i in {1..10}; do
78+
if docker exec redis redis-cli ping | grep -q PONG; then
79+
echo "Redis is ready"
80+
break
81+
fi
82+
echo "Waiting for Redis..."
83+
sleep 1
84+
done
85+
6686
- name: "Run tests"
6787
run: ${PYBIN}/python -m unittest -v
88+
env:
89+
REDIS_URL: redis://localhost:6379
90+
91+
#- name: "Run tests"
92+
# run: ${PYBIN}/python -m unittest -v
6893

6994
build-macos:
7095
name: "Build and test macOS"

0 commit comments

Comments
 (0)