File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 24
24
uses : actions/checkout@v4
25
25
26
26
# install dependencies for all linters, then run the linter, so we don't get import failures when the linters scan the code
27
+ # not required, just makes the test cases a bit cleaner
27
28
- name : Install pip dependencies
28
29
if : ${{ ! ( runner.os == 'macOS' && matrix.python-version == '3.7' ) }}
29
30
run : |
@@ -39,10 +40,13 @@ jobs:
39
40
python_packages=('flake8' 'pylint' 'ruff' 'mypy' 'pytype' 'pyright' 'fixit' 'pyre-check' 'flake8-sarif-formatter')
40
41
for package in "${python_packages[@]}"; do
41
42
echo "::notice::Installing Python package ${package}"
42
- python3 -mpip install ${PIP_ARGS} -q "${package}"
43
+ if ! python3 -mpip install ${PIP_ARGS} -q "${package}"; then
44
+ echo "::warning::Failed to installed Python dependency ${package}, continuing"
45
+ fi
43
46
done
44
47
45
48
- name : Run Python Lint
49
+ if : ${{ ! ( runner.os == 'macOS' && matrix.python-version == '3.7' ) }}
46
50
uses : advanced-security/python-lint-code-scanning-action@main
47
51
with :
48
52
linter : ${{ matrix.linter }}
You can’t perform that action at this time.
0 commit comments