File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 25
25
- uses : actions/checkout@v4
26
26
- name : Install pip dependencies
27
27
run : |
28
- python3 -mpip install -q --upgrade pip --break-system-packages
29
- python3 -mpip install -q flake8 pylint ruff mypy pytype pyright fixit pyre-check --break-system-packages
30
- python3 -mpip install -q flake8-sarif-formatter --break-system-packages
28
+ if [[ "${RUNNER_OS}" == "macOS" ]]; then
29
+ PIP_ARGS="--break-system-packages"
30
+ else
31
+ PIP_ARGS=""
32
+ fi
33
+ python3 -mpip install -q --upgrade pip "${PIP_ARGS}"
34
+ python3 -mpip install -q flake8 pylint ruff mypy pytype pyright fixit pyre-check "${PIP_ARGS}"
35
+ python3 -mpip install -q flake8-sarif-formatter "${PIP_ARGS}"
31
36
- name : Run Python Lint
32
37
uses : advanced-security/python-lint-code-scanning-action@main
33
38
with :
You can’t perform that action at this time.
0 commit comments