File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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 : |
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
You can’t perform that action at this time.
0 commit comments