Add files via upload #466
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: Pre-commit Hooks | |
on: | |
push: | |
pull_request: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install cppcheck | |
run: sudo apt-get --yes install cppcheck | |
- name: Install cpplint | |
run: python -m pip install cpplint | |
- name: Install pre-commit | |
run: pip install pre-commit | |
- name: Install pre-commit hooks | |
run: pre-commit install | |
- name: Run pre-commit | |
run: pre-commit run --all-files |