Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Commit ed6b560

Browse files
committed
Wire up CI for kernel-abi-check Python binding
1 parent de4c69a commit ed6b560

2 files changed

Lines changed: 52 additions & 2 deletions

File tree

.github/workflows/rust.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
- uses: actions/checkout@v4
1111
- uses: dtolnay/rust-toolchain@stable
1212
- name: Cargo fmt (kernel-abi-check)
13-
run: ( cd kernel-abi-check && cargo fmt --all -- --check )
13+
run: |
14+
( cd kernel-abi-check/kernel-abi-check && cargo fmt --all -- --check )
15+
( cd kernel-abi-check/bindings/python && cargo fmt --all -- --check )
1416
- name: Cargo fmt (build2cmake)
1517
run: ( cd build2cmake && cargo fmt --all -- --check )
1618

@@ -32,6 +34,8 @@ jobs:
3234
with:
3335
components: clippy
3436
- name: Clippy (kernel-abi-check)
35-
run: ( cd kernel-abi-check && cargo clippy -- -D warnings )
37+
run: |
38+
( cd kernel-abi-check/kernel-abi-check && cargo clippy -- -D warnings )
39+
( cd kernel-abi-check/bindings/python && cargo clippy -- -D warnings )
3640
- name: Clippy (build2cmake)
3741
run: ( cd build2cmake && cargo clippy -- -D warnings )

.github/workflows/test_python.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Test kernels
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
types: [opened, synchronize, reopened] # trigger on PRs
9+
workflow_dispatch:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
build:
17+
name: Run tests
18+
runs-on:
19+
group: aws-g6-24xlarge
20+
permissions:
21+
contents: read
22+
packages: write
23+
strategy:
24+
max-parallel: 4
25+
matrix:
26+
python-version: ["3.12"]
27+
28+
env:
29+
UV_PYTHON_PREFERENCE: only-managed
30+
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v4
34+
35+
- name: Install uv and set the python version
36+
uses: astral-sh/setup-uv@v5
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
40+
- name: Install the project
41+
run: ( cd kernel-abi-check/bindings/python && uv sync --all-extras --dev)
42+
43+
- name: Run tests
44+
run: |
45+
run: ( cd kernel-abi-check/bindings/python && uv run pytest tests )
46+
uv run pytest tests

0 commit comments

Comments
 (0)