Skip to content

Commit 755e890

Browse files
authored
Create 0_manual_mypy.yml
1 parent 9c73998 commit 755e890

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/0_manual_mypy.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: manual_mypy
2+
permissions: read-all
3+
4+
on:
5+
workflow_dispatch:
6+
paths:
7+
- '.github/workflows/mypy.yml'
8+
- 'pyproject.toml'
9+
- '**.py'
10+
- '**.pyi'
11+
12+
jobs:
13+
mypy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
17+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
18+
with:
19+
python-version: 3.10.14
20+
- name: Install NNCF
21+
run: |
22+
pip install -e . torch -c constraints.txt
23+
- name: Install mypy
24+
run: pip install mypy==1.8.0
25+
- name: Run mypy
26+
run: mypy --install-types --non-interactive

0 commit comments

Comments
 (0)