Add the linter setup
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
name: Unit Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
unit-test:
|
||||||
|
name: Unit Test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@main
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.9
|
||||||
|
- name: Install the linter app
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
python -m pip install -r linter/requirements_linter.txt
|
||||||
|
|
||||||
|
- name: Execute the pylinter
|
||||||
|
run: |
|
||||||
|
cd ${{ github.workspace }}
|
||||||
|
pylint --rcfile=${{ github.workspace }}/linter/.pylintrc
|
||||||
Reference in New Issue
Block a user