-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add pylint GitHub Action (#4107)
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
c2ec413
There was a problem hiding this comment.
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
c2ec413
There was a problem hiding this comment.
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