name: Setup Python bindings
description: Install Python headers, create venv, install maturin, and build the taxonomy Python extension
runs:
using: composite
steps:
- name: Install python headers
run: sudo apt-get update && sudo apt-get install -y python3-dev python3-pip python3-venv
shell: bash
- name: Install maturin
run: |
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install maturin downloads pytest
pip show maturin
shell: bash
- name: Add library to venv
run: |
. venv/bin/activate
maturin develop --features=python
shell: bash