Skip to content

Commit 35f2ed4

Browse files
author
JimmyYang20
committed
Add pylint in CI
Signed-off-by: JimmyYang20 <[email protected]>
1 parent b317015 commit 35f2ed4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/main.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
verify-and-lint:
1212
runs-on: ubuntu-latest
1313
name: Verify codegen/vendor/licenses, do lint
14+
strategy:
15+
matrix:
16+
python-version: [ "3.6" ]
1417
env:
1518
GOPATH: ${{ github.workspace }}
1619

@@ -50,6 +53,16 @@ jobs:
5053
run: pycodestyle lib
5154
working-directory: ${{ env.CODE_DIR }}
5255

56+
- name: Set python version
57+
uses: actions/setup-python@v3
58+
with:
59+
python-version: ${{ matrix.python-version }}
60+
- name: Run python lint test
61+
run: |
62+
python -m pip install pylint
63+
pylint lib
64+
working-directory: ${{ env.CODE_DIR }}
65+
5366
build:
5467
runs-on: ubuntu-latest
5568
name: build gm and lc

0 commit comments

Comments
 (0)