Skip to content

Commit 8dec4e7

Browse files
committed
Remove Windows from lint.yml
1 parent 8212870 commit 8dec4e7

File tree

3 files changed

+14
-42
lines changed

3 files changed

+14
-42
lines changed

.github/workflows/lint.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
name: Python Lint Workflow
22
on:
3+
push:
4+
branches: [ "main" ]
5+
pull_request:
6+
# The branches below must be a subset of the branches above
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: '22 3 * * 2'
310
workflow_dispatch:
411

512
jobs:
613
lint:
714
runs-on: ${{ matrix.os }}
815
strategy:
916
matrix:
10-
linter: ['flake8', 'pylint', 'ruff', 'mypy', 'pytype', 'pyright', 'fixit']
11-
python-version: ['3.10']
12-
os: [windows-latest]
17+
linter: ['flake8', 'pylint', 'ruff', 'mypy', 'pytype', 'pyright', 'fixit', 'pyre']
18+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
19+
os: [ubuntu-latest, macos-latest] # doesn't yet work on Windows
1320
fail-fast: false
1421

1522
steps:
@@ -19,10 +26,10 @@ jobs:
1926
- name: Install pip dependencies
2027
run: |
2128
python3 -mpip install -q --upgrade pip
22-
python3 -mpip install -q flake8 pylint ruff mypy pytype pyright fixit pyre-check
29+
python3 -mpip install -q flake8 pylint ruff mypy pytype pyright fixit
2330
python3 -mpip install -q flake8-sarif-formatter
2431
- name: Run Python Lint
2532
uses: advanced-security/python-lint-code-scanning-action@main
2633
with:
2734
linter: ${{ matrix.linter }}
28-
python-version: ${{ matrix.python-version }}
35+
python-version: ${{ matrix.python-version }}

.github/workflows/lint_all.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/lint_win.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
linter: ['flake8', 'pylint', 'ruff', 'mypy', 'pytype', 'pyright', 'fixit']
10+
linter: ['flake8', 'pylint', 'ruff', 'mypy', 'pytype', 'pyright', 'fixit', 'pyre']
1111
python-version: ['3.10']
12-
os: [windows-latest]
12+
os: [windows-latest] # this will fail on Windows currently
1313
fail-fast: false
1414

1515
steps:

0 commit comments

Comments
 (0)