Skip to content

Commit

Permalink
Kunaljubce/integrate pylint to validate imports (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaljubce authored Sep 15, 2024
1 parent e4158ec commit 336c86f
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 4 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: pr-build

on:
workflow_dispatch:

pull_request:
types:
- labeled
- opened
- synchronize
- reopened

jobs:
test_imports:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12

- name: Install pipenv
run: python -m pip install --upgrade pip && pip install pipenv -q

- name: Cache pipenv
id: cache-pipenv
uses: actions/[email protected]
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-public-${{ hashFiles('**/Pipfile.lock') }}

- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: pipenv sync -d

- name: pylink checker for imports
run: pipenv run pylint --disable=all --enable=import-error --jobs=3 tests src utils
7 changes: 4 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ verify_ssl = true
name = "pypi"

[packages]
google-api-python-client = "*"
google-auth-httplib2 = "*"
google-auth-oauthlib = "*"
google-api-python-client = "==2.145.0"
google-auth-httplib2 = "==0.2.0"
google-auth-oauthlib = "==1.2.1"
sqlalchemy = "*"
openpyxl = "*"
pandas = "*"
pytest = "*"
oauth2client = "*"
pylint = "*"

[dev-packages]

Expand Down
59 changes: 58 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 336c86f

Please sign in to comment.