Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add pylint GitHub Action #4107

Merged
merged 11 commits into from
Sep 26, 2023
43 changes: 43 additions & 0 deletions .github/workflows/client-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Python client lint

on:
pull_request:
types: [opened, reopened, synchronize]
paths:
- client/verta/verta/**.py
push:
branches:
- main
- "release/*"

jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: client/verta

strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Install verta
run: python -m pip install .

- name: Import verta
run: python -c 'from verta import Client'

- name: Install pylint
run: python -m pip install pylint

- name: Run pylint
run: pylint --disable=R,C,W verta
Loading