Skip to content

Commit

Permalink
chore: Add pylint GitHub Action (#4107)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuverta authored Sep 26, 2023
1 parent e43e5c7 commit c2ec413
Showing 1 changed file with 43 additions and 0 deletions.
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

2 comments on commit c2ec413

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker Tag: main-2023-09-26T17-33-37--c2ec413

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Total coverage (common): 15.01
Total coverage (server): 61.37

Changed Files coverage (common): coverage 100
Changed Files coverage (server): 100

Please sign in to comment.