Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Cargo fmt (kernel-abi-check)
run: ( cd kernel-abi-check && cargo fmt --all -- --check )
run: |
( cd kernel-abi-check/kernel-abi-check && cargo fmt --all -- --check )
( cd kernel-abi-check/bindings/python && cargo fmt --all -- --check )
- name: Cargo fmt (build2cmake)
run: ( cd build2cmake && cargo fmt --all -- --check )

Expand All @@ -32,6 +34,8 @@ jobs:
with:
components: clippy
- name: Clippy (kernel-abi-check)
run: ( cd kernel-abi-check && cargo clippy -- -D warnings )
run: |
( cd kernel-abi-check/kernel-abi-check && cargo clippy -- -D warnings )
( cd kernel-abi-check/bindings/python && cargo clippy -- -D warnings )
- name: Clippy (build2cmake)
run: ( cd build2cmake && cargo clippy -- -D warnings )
39 changes: 39 additions & 0 deletions .github/workflows/test_python.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test Python bindings

on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened] # trigger on PRs
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]

env:
UV_PYTHON_PREFERENCE: only-managed

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install the project
run: ( cd kernel-abi-check/bindings/python && uv sync --all-extras --dev)

- name: Run tests
run: ( cd kernel-abi-check/bindings/python && uv run pytest tests )
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.obsidian
target
target
.venv
Loading
Loading