Skip to content

Commit de93605

Browse files
authored
Update lint.yml
1 parent 9c25bf7 commit de93605

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/lint.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ jobs:
2020
fail-fast: false
2121

2222
steps:
23-
# install dependencies for all linters, then run the linter, so we don't get import failures when the linters scan the code
24-
# upgrade pip, so that we can install flake8_sarif_formatter properly from the git repo
2523
- name: Checkout repo
2624
uses: actions/checkout@v4
2725

26+
# install dependencies for all linters, then run the linter, so we don't get import failures when the linters scan the code
2827
- name: Install pip dependencies
2928
if: ${{ ! ( runner.os == 'macOS' && matrix.python-version == '3.7' ) }}
3029
run: |
@@ -34,9 +33,14 @@ jobs:
3433
else
3534
PIP_ARGS=""
3635
fi
36+
# upgrade pip, so that we can install flake8_sarif_formatter properly from the git repo
3737
python3 -mpip install ${PIP_ARGS} -q --upgrade pip
38-
python3 -mpip install ${PIP_ARGS} -q flake8 pylint ruff mypy pytype pyright fixit pyre-check
39-
python3 -mpip install ${PIP_ARGS} -q flake8-sarif-formatter
38+
# install packages one-by-one so it is clearer which fails, if it does
39+
python_packages=('flake8' 'pylint' 'ruff' 'mypy' 'pytype' 'pyright' 'fixit' 'pyre-check' 'flake8-sarif-formatter')
40+
for package in "${python_packages[@]}"; do
41+
echo "::notice::Installing Python package $package"
42+
python3 -mpip install ${PIP_ARGS} -q
43+
done
4044
4145
- name: Run Python Lint
4246
uses: advanced-security/python-lint-code-scanning-action@main

0 commit comments

Comments
 (0)