Add flake8 CI checks

Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
This commit is contained in:
2024-06-01 14:21:50 +02:00
parent 12149986c4
commit b7c980b6eb
3 changed files with 31 additions and 17 deletions

View File

@@ -12,3 +12,18 @@ jobs:
run: |
cmake software -B build
cmake --build build -- check-format
Check-Python-Flake8:
runs-on: ubuntu-22.04-full
steps:
- name: Get Flake8
run: |
python -m venv flake-venv
flake-venv/bin/pip install flake8==7.0
- name: Check out repository code
uses: actions/checkout@v4
with:
path: git
- name: Check python
run: |
cd git/software/src &&
find . -iname '*.py' -exec ../../../flake-venv/bin/flake8 {} +