Skip to content

Commit df671b2

Browse files
[GHA] add path: filter for mypy action (#3183)
### Changes Run action only if changes files: ``` - '.github/workflows/mypy.yml' - 'pyproject.toml' - '**.py' - '**.pyi' ``` ### Reason for changes To avoid runing mypy if changed not relative files (example: `*.md`, `*yml`)
1 parent da8e8ac commit df671b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/mypy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
- opened
88
- reopened
99
- synchronize
10+
paths:
11+
- '.github/workflows/mypy.yml'
12+
- 'pyproject.toml'
13+
- '**.py'
14+
- '**.pyi'
1015

1116
jobs:
1217
mypy:
@@ -18,8 +23,7 @@ jobs:
1823
python-version: 3.10.14
1924
- name: Install NNCF
2025
run: |
21-
pip install -e .
22-
pip install torch -c constraints.txt
26+
pip install -e . torch -c constraints.txt
2327
- name: Install mypy
2428
run: pip install mypy==1.8.0
2529
- name: Run mypy

0 commit comments

Comments
 (0)