Skip to content

Migrate to meson build system with PPL 1.2 #92

Migrate to meson build system with PPL 1.2

Migrate to meson build system with PPL 1.2 #92

Workflow file for this run

name: Test
on:
push: { branches: [ "master", "meson" ] }
pull_request: { branches: [ "master" ] }
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgmp-dev libmpfr-dev libmpc-dev
- name: Install Python build dependencies
run: |
pip install --upgrade pip
pip install meson-python meson ninja cython cysignals "gmpy2>=2.1.0b1"
- name: Build and install
run: |
pip install --no-build-isolation --verbose .
- name: Install test dependencies
run: |
pip install sphinx cython-lint
- name: Lint
run: |
cython-lint --ignore=E265,E266,E501,E741 --exclude='ppl_decl.pxd' ppl/
- name: Build (meson)
run: |
meson setup builddir
meson compile -C builddir
- name: Test (meson test)
run: |
meson test -C builddir -v
- name: Show logs
run: cat builddir/meson-logs/testlog.txt || true
if: ${{ always() }}