Skip to content

Commit bb12f25

Browse files
spethischoegl
authored andcommitted
[CI] Add jobs testing select older Cython versions
1 parent 3d1ea26 commit bb12f25

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,27 @@ jobs:
5959
select-by-folder: /home/runner/work/cantera/cantera/test/matlab_experimental
6060

6161
ubuntu-multiple-pythons:
62-
name: ${{ matrix.os }} with Python ${{ matrix.python-version }}, Numpy ${{ matrix.numpy || 'latest' }}
62+
name: ${{ matrix.os }} with Python ${{ matrix.python-version }}, Numpy ${{ matrix.numpy || 'latest' }}, Cython ${{ matrix.cython || 'latest' }}
6363
runs-on: ${{ matrix.os }}
6464
timeout-minutes: 60
6565
strategy:
6666
matrix:
6767
python-version: ['3.8', '3.10', '3.11', '3.12']
6868
os: ['ubuntu-20.04', 'ubuntu-22.04']
6969
numpy: ['']
70+
cython: ['']
7071
include:
7172
# Keep some test cases with NumPy 1.x until we drop support
7273
- python-version: '3.12'
7374
os: 'ubuntu-24.04'
7475
numpy: "'<2.0'"
76+
# Keep some test cases with older Cython versions
77+
- python-version: '3.10'
78+
os: 'ubuntu-24.04'
79+
cython: "==0.29.31" # minimum supported version
80+
- python-version: '3.11'
81+
os: 'ubuntu-24.04'
82+
cython: "==3.0.8" # System version for Ubuntu 24.04
7583

7684
fail-fast: false
7785
steps:
@@ -95,8 +103,8 @@ jobs:
95103
- name: Install Python dependencies
96104
run: |
97105
python3 -m pip install ruamel.yaml scons==3.1.2 numpy${{ matrix.numpy }} \
98-
cython pandas pytest pytest-github-actions-annotate-failures pytest-xdist \
99-
pint graphviz
106+
cython${{ matrix.cython }} pandas pytest \
107+
pytest-github-actions-annotate-failures pytest-xdist pint graphviz
100108
- name: Build Cantera
101109
run: |
102110
python3 `which scons` build env_vars=all -j4 debug=n --debug=time \

0 commit comments

Comments
 (0)