diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e9a403fc1..8a7a9e127 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", "3.7", "3.8", "3.9" ] env: GOPATH: ${{ github.workspace }} @@ -50,6 +53,17 @@ 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