cpp and python linters #20
Workflow file for this run
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: Check Monorepo Code Styling | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run-linters-python: | |
name: Run Python linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install Python dependencies | |
run: pip install autopep8 | |
- name: Run linters | |
uses: wearerequired/lint-action@v2 | |
with: | |
Autopep8: true | |
run-linters-cpp: | |
name: Run C++ linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Install ClangFormat | |
run: sudo apt-get install -y clang-format | |
- name: Run linters | |
uses: wearerequired/lint-action@v2 | |
with: | |
clang_format: true | |
clang_format_args: "-style=Google" |