Fix conan #69
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| CMAKE_INSTALL_MESSAGE: NEVER | |
| CMAKE_LOG_LEVEL: WARNING | |
| MAKEFLAGS: --silent | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| env: | |
| POETRY_VIRTUALENVS_IN_PROJECT: "true" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - id: python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Cache Python tools | |
| id: python-tools-cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: .ci-tools | |
| key: python-tools-${{ runner.os }}-${{ steps.python.outputs.python-version }}-clang-format-22.1.8-poetry-2.4.1 | |
| - name: Cache Poetry environment | |
| uses: actions/cache@v5 | |
| with: | |
| path: .venv | |
| key: poetry-${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ hashFiles('poetry.lock', 'pyproject.toml') }} | |
| restore-keys: | | |
| poetry-${{ runner.os }}-${{ steps.python.outputs.python-version }}- | |
| - name: Install Python tools | |
| if: steps.python-tools-cache.outputs.cache-hit != 'true' | |
| run: | | |
| python -m venv .ci-tools | |
| .ci-tools/bin/python -m pip install --quiet --disable-pip-version-check "clang-format==22.1.8" "poetry==2.4.1" | |
| - name: Add Python tools to PATH | |
| run: echo "$GITHUB_WORKSPACE/.ci-tools/bin" >> "$GITHUB_PATH" | |
| - name: Lint | |
| run: | | |
| make api-generate | |
| make format | |
| make lint | |
| git diff --exit-code | |
| git status --short | |
| test -z "$(git status --porcelain)" |