Test fixes for Python 3.13 #89
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: 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"] | |
cython-version: ["0.29.37", "3.0.7"] | |
python-version: | |
- "3.7" | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "pypy3.7" | |
- "pypy3.8" | |
- "pypy3.9" | |
- "pypy3.10" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install cython==${{ matrix.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' |