[pre-commit.ci] pre-commit autoupdate #434
This file contains 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: Format | |
on: | |
workflow_dispatch: | |
merge_group: | |
pull_request: | |
push: | |
branches: | |
- master | |
- stable | |
- "v*" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
clang-tidy: | |
name: Clang-Tidy | |
runs-on: ubuntu-latest | |
container: silkeh/clang:14 | |
env: | |
CC: clang | |
CXX: clang++ | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare env | |
run: > | |
apt-get update && apt-get install -y python3-dev python3-pip python3-setuptools python3-wheel | |
--no-install-recommends | |
- name: Upgrade pybind11 and setuptools | |
run: python3 -m pip install --upgrade pybind11 "setuptools>=61.0.0" --prefer-binary | |
- name: Run clang-tidy | |
run: python3 setup.py clang_tidy --warning-as-errors |