# Lints CMake config and C++ source code. name: "Lint source code" on: workflow_dispatch: pull_request: types: - opened - reopened - synchronize - ready_for_review jobs: lint-source-code: runs-on: ubuntu-latest timeout-minutes: 5 steps: - name: Checkout uses: actions/checkout@v4 - name: Install dependencies run: | python3 -m venv build/python source build/python/bin/activate pip install pyyaml cmake_format clang_format - name: Linting with CMake formatter run: ./scripts/lint_cmake.py - name: Linting with Clang format run: ./scripts/lint_clang.py