Skip to content

Commit 48bd8d7

Browse files
committed
Fix arg to work on Linux AND Mac
1 parent de54792 commit 48bd8d7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/lint.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- name: Install pip dependencies
2727
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}"
3136
- name: Run Python Lint
3237
uses: advanced-security/python-lint-code-scanning-action@main
3338
with:

0 commit comments

Comments
 (0)