-
Notifications
You must be signed in to change notification settings - Fork 421
47 lines (39 loc) · 1.2 KB
/
typing.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Test type stubs
on: [push, pull_request]
permissions:
contents: read
jobs:
stubtest:
name: Run stubtest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
- name: Set up latest Python 3
uses: actions/setup-python@f38219332975fe8f9c04cca981d674bf22aea1d3 # v2
with:
python-version: 3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy==0.921 types-protobuf==3.19.21
- name: Execute run_stubtest.py
run: |
cd python
python run_stubtest.py
mypy:
name: Run mypy on stubs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
- name: Set up latest Python 3
uses: actions/setup-python@f38219332975fe8f9c04cca981d674bf22aea1d3 # v2
with:
python-version: 3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy==0.921 types-protobuf==3.19.21
- name: Run mypy
run: |
cd python
mypy --exclude pb2/ -p phonenumbers