From 4c3d7b64ed8d5407944fb987bf9c804805c76164 Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Tue, 7 Jun 2022 18:04:11 +0200 Subject: [PATCH] Add the linter setup --- .github/workflows/linter.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..9d74c8d --- /dev/null +++ b/.github/workflows/linter.yml @@ -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 \ No newline at end of file