Skip to content

Commit 020f6f7

Browse files
update dependency management in the ci
1 parent 88c0325 commit 020f6f7

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
- name: Install dependencies
5353
run: |
5454
poetry install --all-extras
55+
poetry run pip install ranx
5556
5657
- name: Authenticate to Google Cloud
5758
uses: google-github-actions/auth@v1
@@ -116,19 +117,19 @@ jobs:
116117
- name: Install dependencies
117118
run: |
118119
poetry install --all-extras
120+
poetry run pip install ranx
119121
120-
- name: Install specific redis-py version
121-
run: |
122+
# Install right redis version based on redis py
122123
if [[ "${{ matrix.redis-py-version }}" == "5.x" ]]; then
123124
poetry add "redis>=5.0.0,<6.0.0"
124125
else
125126
poetry add "redis>=6.0.0,<7.0.0"
126127
fi
127128
128-
- name: Install hiredis if needed
129-
if: matrix.connection == 'hiredis'
130-
run: |
131-
poetry add hiredis
129+
# Install hiredis if selected
130+
if [[ "${{ matrix.connection }}" == "hiredis" ]]; then
131+
poetry add hiredis
132+
fi
132133
133134
- name: Set Redis image name
134135
run: |

0 commit comments

Comments
 (0)