-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kunaljubce/integrate pylint to validate imports (#21)
- Loading branch information
1 parent
e4158ec
commit 336c86f
Showing
3 changed files
with
103 additions
and
4 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,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 |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.