on: [pull_request, workflow_dispatch]

name: CI

jobs:
  sdk_api_coverage:
    name: SDK API Coverage Report
    runs-on: ubuntu-latest
    steps:
      - name: Checkout sources
        uses: actions/checkout@v3
      - name: Setup Python env
        uses: actions/setup-python@v4
        with:
          python-version: "3.9"
          check-latest: true
      - name: Install dependencies
        run: |
          sudo apt-get install ripgrep
          pip3 install pycparser
      - name: Run coverage script
        id: coverage
        run: |
          python scripts/sdk_coverage.py

