Skip to content

Update softprops/action-gh-release action to v2 #118

Update softprops/action-gh-release action to v2

Update softprops/action-gh-release action to v2 #118

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:
# macos-latest (ATM macos-14) runs on Apple Silicon,
# macos-13 runs on Intel
runs_on: ['macos-latest', 'macos-13']
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
cython:
- "<3"
- ">=3"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Force Cython version
run: sed -i.bak 's/"Cython"/"Cython${{matrix.cython}}"/' pyproject.toml
- name: Install project
run: |
pip install cython pytest setuptools
pip install .
- name: Test with pytest
run: |
make test_lib
make
make tests