@@ -57,14 +57,24 @@ jobs:
57
57
pip install -r dev_requirements.txt
58
58
invoke linters
59
59
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
+
60
69
tests :
61
70
runs-on : ubuntu-latest
62
71
timeout-minutes : 60
72
+ needs : current_version
63
73
strategy :
64
74
max-parallel : 15
65
75
fail-fast : false
66
76
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']
68
78
python-version : ['3.8', '3.12']
69
79
parser-backend : ['plain']
70
80
event-loop : ['asyncio']
@@ -82,13 +92,13 @@ jobs:
82
92
83
93
python-compatibility-tests :
84
94
runs-on : ubuntu-latest
85
- needs : [ tests ]
95
+ needs : [ current_version, tests ]
86
96
timeout-minutes : 60
87
97
strategy :
88
98
max-parallel : 15
89
99
fail-fast : false
90
100
matrix :
91
- redis-version : [ ${{ env .CURRENT_REDIS_VERSION }} ]
101
+ redis-version : [ ${{ needs.current_version.outputs .CURRENT_REDIS_VERSION }} ]
92
102
python-version : ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.9', 'pypy-3.10']
93
103
parser-backend : [ 'plain' ]
94
104
event-loop : [ 'asyncio' ]
@@ -106,13 +116,13 @@ jobs:
106
116
107
117
hiredis-tests :
108
118
runs-on : ubuntu-latest
109
- needs : [tests]
119
+ needs : [current_version, tests]
110
120
timeout-minutes : 60
111
121
strategy :
112
122
max-parallel : 15
113
123
fail-fast : false
114
124
matrix :
115
- redis-version : [ ${{ env .CURRENT_REDIS_VERSION }} ]
125
+ redis-version : [ ${{ needs.current_version.outputs .CURRENT_REDIS_VERSION }} ]
116
126
python-version : [ '3.8', '3.12']
117
127
parser-backend : [ 'hiredis' ]
118
128
event-loop : [ 'asyncio' ]
@@ -139,13 +149,13 @@ jobs:
139
149
140
150
uvloop-tests :
141
151
runs-on : ubuntu-latest
142
- needs : [tests]
152
+ needs : [current_version, tests]
143
153
timeout-minutes : 60
144
154
strategy :
145
155
max-parallel : 15
146
156
fail-fast : false
147
157
matrix :
148
- redis-version : [ ${{ env .CURRENT_REDIS_VERSION }} ]
158
+ redis-version : [ ${{ needs.current_version.outputs .CURRENT_REDIS_VERSION }} ]
149
159
python-version : [ '3.8', '3.12' ]
150
160
parser-backend : [ 'plain' ]
151
161
event-loop : [ 'uvloop' ]
0 commit comments