Skip to content

Commit

Permalink
ci: add python linting as part of checks
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Tatianin <[email protected]>
  • Loading branch information
d-tatianin committed Feb 8, 2024
1 parent 6535fa6 commit 0aab716
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 pytest
- name: Run flake8
run: flake8 tests/*.py

- name: Run mypy
run: mypy --disallow-incomplete-defs --no-implicit-optional tests/*.py

0 comments on commit 0aab716

Please sign in to comment.