initialise with pylibbpf name

Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
This commit is contained in:
2025-09-20 23:24:14 +05:30
parent f5eb8e18c2
commit 97eb8f6d1a
14 changed files with 406 additions and 261 deletions

View File

@ -6,31 +6,46 @@ on:
push:
branches:
- master
- main
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [windows-latest, macos-13, ubuntu-latest]
python-version: ["3.7", "3.11"]
platform: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libbpf-dev \
linux-headers-generic \
build-essential \
cmake \
ninja-build
- name: Add requirements
run: python -m pip install --upgrade wheel setuptools
run: python -m pip install --upgrade pip wheel setuptools
- name: Build and install
run: pip install --verbose .[test]
- name: Test import
run: python -c "import pylibbpf; print('Import successful')"
- name: Test
run: python -m pytest
run: python -m pytest -v