Skip to content

Commit

Permalink
[CI] Add jobs testing select older Cython versions
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Oct 21, 2024
1 parent a803d1a commit 8db52bc
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,27 @@ jobs:
select-by-folder: /home/runner/work/cantera/cantera/test/matlab_experimental

ubuntu-multiple-pythons:
name: ${{ matrix.os }} with Python ${{ matrix.python-version }}, Numpy ${{ matrix.numpy || 'latest' }}
name: ${{ matrix.os }} with Python ${{ matrix.python-version }}, Numpy ${{ matrix.numpy || 'latest' }}, Cython ${{ matrix.cython || 'latest' }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
matrix:
python-version: ['3.8', '3.10', '3.11', '3.12']
os: ['ubuntu-20.04', 'ubuntu-22.04']
numpy: ['']
cython: ['']
include:
# Keep some test cases with NumPy 1.x until we drop support
- python-version: '3.12'
os: 'ubuntu-24.04'
numpy: "'<2.0'"
# Keep some test cases with older Cython versions
- python-version: '3.10'
os: 'ubunty-24.04'
cython: "=0.29.31" # minimum supported version
- python-version: '3.11'
os: 'ubunty-24.04'
cython: "=3.0.8" # System version for Ubuntu 24.04

fail-fast: false
steps:
Expand All @@ -95,8 +103,8 @@ jobs:
- name: Install Python dependencies
run: |
python3 -m pip install ruamel.yaml scons==3.1.2 numpy${{ matrix.numpy }} \
cython pandas pytest pytest-github-actions-annotate-failures pytest-xdist \
pint graphviz
cython${{ matrix.cython }} pandas pytest \
pytest-github-actions-annotate-failures pytest-xdist pint graphviz
- name: Build Cantera
run: |
python3 `which scons` build env_vars=all -j4 debug=n --debug=time \
Expand Down

0 comments on commit 8db52bc

Please sign in to comment.