Skip to content

Test with Cython 0.29 and 3.0 #73

Test with Cython 0.29 and 3.0

Test with Cython 0.29 and 3.0 #73

Workflow file for this run

name: Test
on:
push:
branches:
- master
- release
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "pypy3.6"
- "pypy3.7"
- "pypy3.8"
# - "pypy3.9"
# - "pypy3.10"
cython-version:
- "0.29"
- "3.0"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |

Check failure on line 39 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 39, Col: 14): Unrecognized named-value: 'cython-version'. Located at position 1 within expression: cython-version
python -m pip install --upgrade pip setuptools wheel
pip install cython==${{ cython-version }} pytest
pip install git+https://github.com/pytoolz/toolz.git
python setup.py build_ext --inplace --with-cython
pip install -e .
- name: PyTest
run: |
pytest --doctest-modules cytoolz/
# For convenience, make sure simple test commands work
pytest
# Make sure we can cimport cytoolz
echo 'cimport cytoolz ; from cytoolz.functoolz cimport memoize' > try_cimport_cytoolz.pyx
cythonize -i try_cimport_cytoolz.pyx
python -c 'import try_cimport_cytoolz'