Skip to content

test(hw): ADRV9009+ZC706 device-tree overlay lifecycle test #281

test(hw): ADRV9009+ZC706 device-tree overlay lifecycle test

test(hw): ADRV9009+ZC706 device-tree overlay lifecycle test #281

Workflow file for this run

name: Audit ADI Bindings
permissions:
contents: read
pull-requests: write
on:
workflow_dispatch:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
binding-audit:
runs-on: ubuntu-latest
name: Audit ADI Bindings
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[test]"
pip install pyyaml
- name: Clone ADI Linux kernel (bindings only)
run: |
git clone --depth 1 --filter=blob:none --sparse \
https://github.com/analogdevicesinc/linux.git /tmp/linux
cd /tmp/linux
git sparse-checkout set Documentation/devicetree/bindings
- name: Run binding audit
run: |
cd scripts
python audit_adi_bindings.py \
--linux-path /tmp/linux \
--project-root ${{ github.workspace }} \
--output ${{ github.workspace }}/binding_audit.json \
--report ${{ github.workspace }}/binding_audit.md
- name: Display audit summary
run: |
echo "## Binding Audit Report" >> $GITHUB_STEP_SUMMARY
cat binding_audit.md >> $GITHUB_STEP_SUMMARY
- name: Find PR number
if: github.event_name == 'push'
id: find-pr
run: |
PR=$(gh pr list --head "${{ github.ref_name }}" --json number --jq '.[0].number' 2>/dev/null || echo "")
echo "number=$PR" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ github.token }}
- name: Post audit report to PR
if: github.event_name == 'pull_request' || steps.find-pr.outputs.number != ''
uses: marocchino/sticky-pull-request-comment@v2
with:
header: binding-audit
number: ${{ github.event_name == 'pull_request' && github.event.number || steps.find-pr.outputs.number }}
path: binding_audit.md
- name: Upload audit report
uses: actions/upload-artifact@v7
with:
name: binding-audit-report
path: |
binding_audit.json
binding_audit.md
retention-days: 30