diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index c46df6f..d6aba92 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -33,3 +33,23 @@ jobs: if: always() with: report_paths: result.xml + lint-python-scripts: + runs-on: ubuntu-latest + + strategy: + fail-fast: true + + steps: + - uses: actions/checkout@v3 + + - name: Install flake8 & mypy + run: | + sudo apt update + sudo apt install python3 python3-pip + pip install flake8 mypy + + - name: Run flake8 + run: flake8 tests/*.py + + - name: Run mypy + run: mypy --disallow-incomplete-defs --no-implicit-optional tests/*.py