Skip to content

Commit a7d82e2

Browse files
chore: Add mypy github action
1 parent e92a196 commit a7d82e2

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/sync-repo-settings.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ branchProtectionRules:
1212
- 'cla/google'
1313
- 'docs'
1414
- 'lint'
15+
- 'mypy'
1516
- 'unit (3.9)'
1617
- 'unit (3.10)'
1718
- 'unit (3.11)'

.github/workflows/mypy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- main
5+
name: mypy
6+
jobs:
7+
mypy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Setup Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.10"
16+
- name: Install nox
17+
run: |
18+
python -m pip install --upgrade setuptools pip wheel
19+
python -m pip install nox
20+
- name: Run mypy
21+
run: |
22+
nox -s mypy

0 commit comments

Comments
 (0)