Skip to content

Transform to Python (PyO3) package - fast_unidecode #2

Transform to Python (PyO3) package - fast_unidecode

Transform to Python (PyO3) package - fast_unidecode #2

name: Test build & install
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on: # Trigger the workflow on push or pull request, but only for the master branch
push:
branches: [pyo3]
pull_request:
branches: [pyo3]
jobs:
pkg-install:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04, macOS-13]
python-version: ["3.10", "3.13"]
timeout-minutes: 5
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: messense/maturin-action@v1
- name: Build package with maturin
run: maturin build --release
- name: Install | Uninstall package
working-directory: target/wheels/
run: |
python -m pip install *.whl
python -c "import fast_unidecode"
python -m pip uninstall -y fast_unidecode