Skip to content

Add Python binding

Add Python binding #7

Workflow file for this run

---
name: "CI: Python"
on:
push:
branches:
- main
pull_request:
branches:
- "*"
paths:
- "ainu-utils/**"
- "ainu-utils-python/**"
permissions:
contents: read
defaults:
run:
working-directory: ainu-utils-python
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: x86_64
args: --release --out dist --find-interpreter
sccache: "true"
manylinux: auto
working-directory: ainu-utils-python
- name: pytest
shell: bash
run: |
set -e
pip install ainu-utils --find-links dist --force-reinstall
pip install pytest
pytest
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: aarch64
args: --release --out dist --find-interpreter
sccache: "true"
working-directory: ainu-utils-python
- name: pytest
shell: bash
run: |
set -e
pip install ainu-utils --find-links dist --force-reinstall
pip install pytest
pytest