Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.

Commit ad0e4e2

Browse files
committed
Fix super-linter dependencies
1 parent 4f905e0 commit ad0e4e2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/linter.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,17 @@ jobs:
3838

3939
- name: Install Dependencies
4040
run: |
41-
python3 -m pip install --upgrade pip
42-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
41+
sudo apt-get install -qqy --no-install-recommends python3-venv python3-setuptools
42+
python3 -m venv .venv
43+
.venv/bin/python3 -m pip install -U pip
44+
if [ -f requirements.txt ]; then .venv/bin/python3 -m pip install -r requirements.txt; fi
45+
mv .venv /home/runner/work/_temp/_github_workflow
4346
4447
################################
4548
# Run Linter against code base #
4649
################################
4750
- name: Lint Code Base
4851
uses: docker://github/super-linter:v3
4952
env:
53+
PYTHONPATH: "/github/workspace/:/github/workflow/.venv/lib/python3.6/site-packages"
5054
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)