Skip to content

Commit 4c89ba4

Browse files
committed
Don't try 3.7 on MacOS
1 parent bcb1274 commit 4c89ba4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ jobs:
2222
steps:
2323
# install dependencies for all linters, then run the linter, so we don't get import failures when the linters scan the code
2424
# upgrade pip, so that we can install flake8_sarif_formatter properly from the git repo
25-
- uses: actions/checkout@v4
25+
- name: Checkout repo
26+
uses: actions/checkout@v4
27+
2628
- name: Install pip dependencies
29+
if: ${{ ! ( runner.os == "macOS" && matrix.python-version == "3.7" ) }}
2730
run: |
31+
# deal with HomeBrew managed Python on GitHub Hosted MacOS runners
2832
if [[ "${RUNNER_OS}" == "macOS" ]]; then
2933
PIP_ARGS="--break-system-packages"
3034
else
@@ -33,6 +37,7 @@ jobs:
3337
python3 -mpip install ${PIP_ARGS} -q --upgrade pip
3438
python3 -mpip install ${PIP_ARGS} -q flake8 pylint ruff mypy pytype pyright fixit pyre-check
3539
python3 -mpip install ${PIP_ARGS} -q flake8-sarif-formatter
40+
3641
- name: Run Python Lint
3742
uses: advanced-security/python-lint-code-scanning-action@main
3843
with:

0 commit comments

Comments
 (0)