File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -205,13 +205,13 @@ jobs:
205205 matrix :
206206 include :
207207 - python : ' 3.9' # We support running on cython 2 and 3 for 3.9
208- cython : ' 2 '
208+ cython : ' <3 ' # cython 2
209209 - python : ' 3.9'
210- cython : ' 3 '
211- - python : ' 3.11' # 3.11 is the last version Cy2 supports
212- cython : ' 2 '
213- - python : ' 3.13' # We support running cython3 on 3.13
214- cython : ' 3 '
210+ cython : ' >=3 ' # cython 3 (or greater)
211+ - python : ' 3.11' # 3.11 is the last version Cy2 supports
212+ cython : ' <3 ' # cython 2
213+ - python : ' 3.13' # We support running cython3 on 3.13
214+ cython : ' >=3 ' # cython 3 (or greater)
215215 steps :
216216 - name : Checkout
217217 uses : actions/checkout@v4
@@ -226,13 +226,8 @@ jobs:
226226
227227 - name : install cython & compile pyx file
228228 run : |
229- if [ "${{ matrix.cython }}" == "2" ]; then
230- python -m pip install "cython<3"
231- cythonize -i tests/cython/test_cython.pyx
232- elif [ "${{ matrix.cython }}" == "3" ]; then
233- python -m pip install "cython>=3"
234- cythonize --inplace tests/cython/test_cython.pyx
235- fi
229+ python -m pip install "cython${{ matrix.cython }}"
230+ cythonize --inplace tests/cython/test_cython.pyx
236231
237232 - name : import & run module
238233 run : python -c 'import tests.cython.test_cython'
You can’t perform that action at this time.
0 commit comments