Skip to content

also test cython<3.0.0 #34

also test cython<3.0.0

also test cython<3.0.0 #34

Workflow file for this run

name: Test
on:
push: { branches: [ "master" ] }
pull_request: { branches: [ "master" ] }
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
cython: ["cython", "cython<3.0.0"]
steps:
- uses: actions/checkout@v2
with: { submodules: recursive }
- uses: conda-incubator/setup-miniconda@v2
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest", python-version: "${{matrix.python-version}}" }
- name: Install pplpy dependencies
shell: bash -l {0}
run: |
mamba env update --quiet -n test setuptools gmpy2 cysignals ppl "${{matrix.cython}}"
conda list
- name: Install pplpy
shell: bash -l {0}
run: |
pip install --verbose --no-index --no-build-isolation .
- name: Install test dependencies
run: |
mamba env update --quiet -n test -f environment.test.yml
conda list
- name: Linter
shell: bash -l {0}
run: |
cython-lint --ignore=E265,E266,E501,E741 --exclude='ppl_decl.pxd' ppl/
- name: Run tests
shell: bash -l {0}
run: |
python setup.py test
- name: Show logs
run: grep "" /dev/null `find -name '*.log'` || true
if: ${{ always() }}