From d457f3365c4ea30167f6d1a517ed752b6d0a5fe1 Mon Sep 17 00:00:00 2001 From: Boaz Haim Date: Sun, 1 Sep 2024 18:56:40 +0300 Subject: [PATCH] try #4 --- .../workflows/ufm_log_analyzer_ci_workflow.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ufm_log_analyzer_ci_workflow.yml b/.github/workflows/ufm_log_analyzer_ci_workflow.yml index 6fd6ff1b..42f4603a 100644 --- a/.github/workflows/ufm_log_analyzer_ci_workflow.yml +++ b/.github/workflows/ufm_log_analyzer_ci_workflow.yml @@ -4,13 +4,11 @@ on: push: paths: - 'plugins/ufm_log_analyzer_plugin/**' + - '.github/workflows/ufm_log_analyzer_ci_workflow.yml' jobs: pylint: runs-on: ubuntu-latest - env: - SCRIPT_DIR: "plugins/ufm_log_analyzer_plugin" - PYTHONPATH: "${{ env.SCRIPT_DIR }}/src:${{ env.SCRIPT_DIR }}/../../" steps: - name: Checkout code @@ -19,11 +17,19 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.9' + python-version: '3.9' - name: Install dependencies and run PyLint run: | - cd ${{ env.SCRIPT_DIR }} + SCRIPT_DIR="plugins/ufm_log_analyzer_plugin" + PYTHONPATH="$SCRIPT_DIR/src:$SCRIPT_DIR/../../" + export PYTHONPATH + + cd $SCRIPT_DIR + + # Install dependencies pip install -r src/loganalyze/requirements.txt pip install pylint + + # Run PyLint pylint --rcfile=src/loganalyze/.pylintrc src/loganalyze