From 38c6ef12df91821e65a5a0f1a02bbdc846e12e10 Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 16 Oct 2020 17:55:14 +0300 Subject: [PATCH] add excluded folders & create venv --- .github/workflows/linter.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 01ceee7..f69303a 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -50,10 +50,17 @@ jobs: - name: Install Required packages run: | - sudo apt-get install -y libvirt-dev python3-lxml zlib1g-dev libxslt1-dev + sudo apt-get install -y python3-virtualenv libvirt-dev python3-lxml zlib1g-dev libxslt1-dev + + - name: Create & Activate VENV + run: | + python3 -m venv venv + source venv/bin/activate + - name: Install dependencies run: | python3 -m pip install --upgrade pip + pip3 install wheel if [ -f dev/requirements.txt ]; then pip3 install -r dev/requirements.txt; else pip3 install -r conf/requirements.txt; fi ################################ # Run Linter against code base # @@ -61,6 +68,7 @@ jobs: - name: Lint Code Base uses: docker://github/super-linter:latest env: + FILTER_REGEX_EXCLUDE: .*(static|scss|venv)/.* DEFAULT_BRANCH: master GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VALIDATE_ANSIBLE: false