Move Auto & Sleep from switches to presets #19
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: Code Quality Checks | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
check-autopep8-isort: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-autopep8 | |
- run: | | |
python -m pip install --upgrade pip | |
pip install autopep8 isort | |
- run: autopep8 --diff --exit-code $(git ls-files '*.py') | |
- run: isort --diff --check $(git ls-files '*.py') | |
check-clang-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
clang-format --dry-run --Werror $(git ls-files '*.cpp' '*.h') |