Skip to content

Commit 38cf2c7

Browse files
committed
workflows: Run python linters
1 parent e38afb1 commit 38cf2c7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ubuntu_test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,18 @@ jobs:
4848
- name: Run unit tests
4949
run: |
5050
python3 -m unittest
51+
lint:
52+
name: Run linters on the code
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Checkout
56+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
57+
- name: Install dependencies
58+
run: |
59+
sudo apt update
60+
sudo apt install python3 python3-pip meson
61+
sudo pip3 install mypy flake8 pyflakes pycodestyle
62+
- name: Run linters
63+
run: |
64+
meson setup build
65+
ninja -C build lint-python

0 commit comments

Comments
 (0)