[CI] Introduce path limits for workflow runs (#528) #3
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
on: | |
workflow_call: | |
push: | |
paths: | |
- '**/*.cpp' | |
- '**/*.hpp' | |
- '**/*.c' | |
- '**/*.h' | |
- '**/*.py' | |
- '**/*.sh' | |
- '.clang-format' | |
- 'setup.cfg' | |
- '.github/workflows/lint.yml' | |
pull_request: | |
paths: | |
- '**/*.cpp' | |
- '**/*.hpp' | |
- '**/*.c' | |
- '**/*.h' | |
- '**/*.py' | |
- '**/*.sh' | |
- '.clang-format' | |
- 'setup.cfg' | |
- '.github/workflows/lint.yml' | |
jobs: | |
clang-format: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DoozyX/[email protected] | |
with: | |
source: '.' | |
clangFormatVersion: 20 | |
python-lint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install flake8 | |
run: python3 -m pip install flake8 | |
- name: Run flake8 | |
run: python3 -m flake8 . | |
shell-lint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install shellcheck | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y shellcheck | |
- name: Run shellcheck | |
run: shellcheck scripts/*.sh |