Add support for Cython >=3 and keep support for Cython < 3 #74
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: "build (${{ matrix.runs_on }}, ${{ matrix.python }} - Cython ${{ matrix.cython }})" | |
runs-on: ${{ matrix.runs_on }} | |
strategy: | |
matrix: | |
runs_on: | |
- macos-latest | |
- apple-silicon-m1 | |
python: | |
- "3.7" | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
cython: | |
- "<3" | |
- ">=3" | |
exclude: | |
- runs_on: apple-silicon-m1 | |
python: "3.7" | |
- runs_on: apple-silicon-m1 | |
python: "3.8" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python }} | |
# Needs to be skipped on our self-hosted runners tagged as 'apple-silicon-m1' | |
if: ${{ matrix.runs_on != 'apple-silicon-m1' }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Force Cython version | |
run: sed -i.bak 's/"Cython"/"Cython${{matrix.cython}}"/' pyproject.toml | |
- name: Install project | |
run: | | |
source .ci/osx_ci.sh | |
arm64_set_path_and_python_version ${{ matrix.python }} | |
pip install cython pytest | |
pip install . | |
- name: Test with pytest | |
run: | | |
source .ci/osx_ci.sh | |
arm64_set_path_and_python_version ${{ matrix.python }} | |
make test_lib | |
make | |
make tests |