| name: Reusable C API Docs Check |
| |
| on: |
| workflow_call: |
| |
| permissions: |
| contents: read |
| |
| env: |
| FORCE_COLOR: 1 |
| |
| jobs: |
| check-c-api-docs: |
| name: 'Check if all C APIs are documented' |
| runs-on: ubuntu-latest |
| timeout-minutes: 5 |
| steps: |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| with: |
| persist-credentials: false |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 |
| with: |
| python-version: '3.x' |
| - name: Check for undocumented C APIs |
| run: python Tools/check-c-api-docs/main.py |