Skip to content

Commit fc14d85

Browse files
authored
Update lint.yml
1 parent 00ce2dc commit fc14d85

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: actions/checkout@v4
2525

2626
# 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
2728
- name: Install pip dependencies
2829
if: ${{ ! ( runner.os == 'macOS' && matrix.python-version == '3.7' ) }}
2930
run: |
@@ -39,10 +40,13 @@ jobs:
3940
python_packages=('flake8' 'pylint' 'ruff' 'mypy' 'pytype' 'pyright' 'fixit' 'pyre-check' 'flake8-sarif-formatter')
4041
for package in "${python_packages[@]}"; do
4142
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
4346
done
4447
4548
- name: Run Python Lint
49+
if: ${{ ! ( runner.os == 'macOS' && matrix.python-version == '3.7' ) }}
4650
uses: advanced-security/python-lint-code-scanning-action@main
4751
with:
4852
linter: ${{ matrix.linter }}

0 commit comments

Comments
 (0)