Skip to content

Commit f3f07d1

Browse files
committed
Add ugly workaround
1 parent eee2195 commit f3f07d1

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/integration.yaml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,24 @@ jobs:
5757
pip install -r dev_requirements.txt
5858
invoke linters
5959
60+
current_version:
61+
runs-on: ubuntu-latest
62+
outputs:
63+
CURRENT_REDIS_VERSION: ${{ env.CURRENT_REDIS_VERSION }}
64+
steps:
65+
- name: Compute outputs
66+
run: |
67+
echo "CURRENT_REDIS_VERSION=${{ env.CURRENT_REDIS_VERSION }}" >> $GITHUB_OUTPUT
68+
6069
tests:
6170
runs-on: ubuntu-latest
6271
timeout-minutes: 60
72+
needs: current_version
6373
strategy:
6474
max-parallel: 15
6575
fail-fast: false
6676
matrix:
67-
redis-version: [ ${{ env.CURRENT_REDIS_VERSION }} ] #, '8.0-M01', '7.2.6', '6.2.16']
77+
redis-version: [ ${{ needs.current_version.outputs.CURRENT_REDIS_VERSION }} ] #, '8.0-M01', '7.2.6', '6.2.16']
6878
python-version: ['3.8', '3.12']
6979
parser-backend: ['plain']
7080
event-loop: ['asyncio']
@@ -82,13 +92,13 @@ jobs:
8292

8393
python-compatibility-tests:
8494
runs-on: ubuntu-latest
85-
needs: [ tests ]
95+
needs: [ current_version, tests ]
8696
timeout-minutes: 60
8797
strategy:
8898
max-parallel: 15
8999
fail-fast: false
90100
matrix:
91-
redis-version: [ ${{ env.CURRENT_REDIS_VERSION }} ]
101+
redis-version: [ ${{ needs.current_version.outputs.CURRENT_REDIS_VERSION }} ]
92102
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.9', 'pypy-3.10']
93103
parser-backend: [ 'plain' ]
94104
event-loop: [ 'asyncio' ]
@@ -106,13 +116,13 @@ jobs:
106116

107117
hiredis-tests:
108118
runs-on: ubuntu-latest
109-
needs: [tests]
119+
needs: [current_version, tests]
110120
timeout-minutes: 60
111121
strategy:
112122
max-parallel: 15
113123
fail-fast: false
114124
matrix:
115-
redis-version: [ ${{ env.CURRENT_REDIS_VERSION }} ]
125+
redis-version: [ ${{ needs.current_version.outputs.CURRENT_REDIS_VERSION }} ]
116126
python-version: [ '3.8', '3.12']
117127
parser-backend: [ 'hiredis' ]
118128
event-loop: [ 'asyncio' ]
@@ -139,13 +149,13 @@ jobs:
139149

140150
uvloop-tests:
141151
runs-on: ubuntu-latest
142-
needs: [tests]
152+
needs: [current_version, tests]
143153
timeout-minutes: 60
144154
strategy:
145155
max-parallel: 15
146156
fail-fast: false
147157
matrix:
148-
redis-version: [ ${{ env.CURRENT_REDIS_VERSION }} ]
158+
redis-version: [ ${{ needs.current_version.outputs.CURRENT_REDIS_VERSION }} ]
149159
python-version: [ '3.8', '3.12' ]
150160
parser-backend: [ 'plain' ]
151161
event-loop: [ 'uvloop' ]

0 commit comments

Comments
 (0)