forked from openvinotoolkit/nncf
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 744 Bytes
/
mypy.yml
File metadata and controls
31 lines (29 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: mypy
permissions: read-all
on:
pull_request:
types:
- opened
- reopened
- synchronize
paths:
- '.github/workflows/mypy.yml'
- 'pyproject.toml'
- '**.py'
- '**.pyi'
jobs:
mypy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: 3.10.14
- name: Install NNCF
run: |
pip install . torch -c constraints.txt
- name: Install mypy
run: pip install mypy==1.8.0
- name: Run mypy
run: mypy --install-types --non-interactive