From 5422942730966980d719d6ab5b1965d4f6b74f11 Mon Sep 17 00:00:00 2001 From: JimmyYang20 Date: Fri, 12 Aug 2022 17:12:30 +0800 Subject: [PATCH] Add check pylint in CI Signed-off-by: JimmyYang20 --- .github/workflows/main.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e9a403fc1..b7bb9f131 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -11,6 +11,9 @@ jobs: verify-and-lint: runs-on: ubuntu-latest name: Verify codegen/vendor/licenses, do lint + strategy: + matrix: + python-version: [ "3.6" ] env: GOPATH: ${{ github.workspace }} @@ -50,6 +53,16 @@ jobs: run: pycodestyle lib working-directory: ${{ env.CODE_DIR }} + - name: Set python version + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Run python lint test + run: | + python -m pip install pylint + pylint lib + working-directory: ${{ env.CODE_DIR }} + build: runs-on: ubuntu-latest name: build gm and lc