|
90 | 90 | invoke ${{matrix.test-type}}-tests
|
91 | 91 | ls -1
|
92 | 92 |
|
| 93 | + - name: Run tests against hiredis < 3.0.0 |
| 94 | + if: ${{ matrix.connection-type == 'hiredis' && matrix.python-version == '3.12'}} |
| 95 | + run: | |
| 96 | + pip uninstall hiredis |
| 97 | + pip install -U setuptools wheel |
| 98 | + pip install -r requirements.txt |
| 99 | + pip install -r dev_requirements.txt |
| 100 | + if [ "${{matrix.connection-type}}" == "hiredis" ]; then |
| 101 | + pip install "hiredis<3.0.0" |
| 102 | + fi |
| 103 | + invoke devenv |
| 104 | + sleep 10 # time to settle |
| 105 | + invoke ${{matrix.test-type}}-tests |
| 106 | + ls -1 |
| 107 | +
|
93 | 108 | - name: Upload test results and profiling data
|
94 | 109 | uses: actions/upload-artifact@v4
|
95 | 110 | with:
|
@@ -145,6 +160,24 @@ jobs:
|
145 | 160 | invoke ${{matrix.test-type}}-tests --protocol=3
|
146 | 161 | fi
|
147 | 162 |
|
| 163 | + - name: Run tests against hiredis < 3.0.0 |
| 164 | + if: ${{ matrix.connection-type == 'hiredis' && matrix.python-version == '3.12'}} |
| 165 | + run: | |
| 166 | + pip uninstall hiredis |
| 167 | + pip install -U setuptools wheel |
| 168 | + pip install -r requirements.txt |
| 169 | + pip install -r dev_requirements.txt |
| 170 | + if [ "${{matrix.connection-type}}" == "hiredis" ]; then |
| 171 | + pip install "hiredis<3.0.0" |
| 172 | + fi |
| 173 | + invoke devenv |
| 174 | + sleep 10 # time to settle |
| 175 | + if [ "${{matrix.event-loop}}" == "uvloop" ]; then |
| 176 | + invoke ${{matrix.test-type}}-tests --uvloop --protocol=3 |
| 177 | + else |
| 178 | + invoke ${{matrix.test-type}}-tests --protocol=3 |
| 179 | + fi |
| 180 | +
|
148 | 181 | - name: Upload test results and profiling data
|
149 | 182 | uses: actions/upload-artifact@v4
|
150 | 183 | with:
|
|
0 commit comments