From bdec91d717198b5a41c75076e64d7a9f76906276 Mon Sep 17 00:00:00 2001 From: Christian Luu <35637788+christianvluu@users.noreply.github.com> Date: Sun, 19 Nov 2023 01:55:02 -0500 Subject: [PATCH] Update pylint.yml --- .github/workflows/pylint.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 9676d597..cf624e64 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -14,10 +14,12 @@ jobs: uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - - name: Install dependencies and getting changed Python files + - name: Install dependencies run: | python -m pip install --upgrade pip pip install pylint + - name: Getting changed Python files and Analysing the code with pylint + run: | git fetch origin ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME} echo CI_COMMIT_SHA=${GITHUB_SHA} tmp_files=$(git diff --name-only origin/main ${CI_COMMIT_SHA}) @@ -25,8 +27,6 @@ jobs: if [ -z "$(echo "$tmp_files" | grep "\.py")" ]; then exit 0; else echo "Python files are found"; fi tmp_pfiles=$(echo "$tmp_files" | grep "\.py") echo "Python files are $tmp_pfiles" - - name: Analysing the code with pylint - run: | cd rb_ws if [[ -z "$tmp_pfiles" ]]; then echo "No files to lint"