diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c719768..4d65412 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,6 +2,29 @@ name: CI on: [push, pull_request] jobs: + lint-python-scripts: + runs-on: ubuntu-latest + + strategy: + fail-fast: true + + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Install flake8 & mypy + run: | + sudo apt update + sudo apt install python3 python3-pip + pip install flake8 mypy + + - name: Run flake8 on the project + run: flake8 *.py scripts/*.py + + - name: Run mypy on the project + run: mypy --disallow-incomplete-defs --no-implicit-optional *.py scripts/*.py + build: runs-on: ${{ matrix.os }}