Skip to content

Commit bedd36f

Browse files
committed
Add mypy check
1 parent a1d13d0 commit bedd36f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,29 @@ jobs:
4646
PY_VERSION: "unused"
4747
run: |
4848
ci/run_conditional_tests.sh
49+
mypy:
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v5
54+
# Use a fetch-depth of 2 to avoid error `fatal: origin/main...HEAD: no merge base`
55+
# See https://github.com/googleapis/google-cloud-python/issues/12013
56+
# and https://github.com/actions/checkout#checkout-head.
57+
with:
58+
fetch-depth: 2
59+
- name: Setup Python
60+
uses: actions/setup-python@v6
61+
with:
62+
python-version: "3.14"
63+
- name: Install nox
64+
run: |
65+
python -m pip install --upgrade setuptools pip wheel
66+
python -m pip install nox
67+
- name: Run mypy
68+
env:
69+
BUILD_TYPE: presubmit
70+
TEST_TYPE: mypy
71+
# TODO(https://github.com/googleapis/google-cloud-python/issues/13775): Specify `PY_VERSION` rather than relying on the default python version of the nox session.
72+
PY_VERSION: "unused"
73+
run: |
74+
ci/run_conditional_tests.sh

0 commit comments

Comments
 (0)