Skip to content

feat: add python and networkit bindings #3

feat: add python and networkit bindings

feat: add python and networkit bindings #3

Workflow file for this run

name: Build and test Python bindings
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions: read-all
jobs:
build:
name: ubuntu-latest build using Python ${{ matrix.python-version }} and with 64-bit IDs set to ${{ matrix.kaminpar-64bit }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.13", "pypy-3.10"]
kaminpar-64bit: ["OFF", "ON"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libtbb-dev libhwloc-dev libsparsehash-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Build and install
run: |
pip install --verbose \
--config-settings=cmake.define.KAMINPAR_64BIT_IDS=${{ matrix.kaminpar-64bit }} \
--config-settings=cmake.define.KAMINPAR_64BIT_WEIGHTS=${{ matrix.kaminpar-64bit }} \
./bindings/python[test]
- name: Run tests
run: pytest ./bindings/python/tests