Skip to content

Commit d13b339

Browse files
committed
Upgrade python version for validate_python to 3.13
1 parent 2cc75d3 commit d13b339

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/validate_python.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup python3
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.8.x'
18+
python-version: '3.13.x'
1919

2020
- name: Install build dependencies
2121
run: python -m pip install -r python_build_requirements.txt
@@ -27,7 +27,7 @@ jobs:
2727
- name: Install poetry for validate_examples.py
2828
uses: abatilo/actions-poetry@v3
2929
with:
30-
poetry-version: 1.2.2
30+
poetry-version: latest
3131

3232
- name: Validate examples (except aio)
3333
run: |

source/codegen/validate_examples.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _validate_examples(
6363
_system("poetry add grpcio")
6464
_system("poetry add --dev grpcio-tools mypy mypy-protobuf types-protobuf grpc-stubs")
6565
_system("poetry add --dev black==23.3.0")
66-
_system("poetry install")
66+
_system("poetry install --no-root")
6767

6868
_stage_client_files(artifact_location, staging_dir)
6969
examples_dir = staging_dir / "examples"
@@ -90,7 +90,7 @@ def _validate_examples(
9090

9191
print(f" -> Running mypy")
9292
_system(
93-
f"poetry run mypy {dir} --check-untyped-defs --ignore-missing-imports{exclude_option}"
93+
f"poetry run mypy {dir} --check-untyped-defs --disable-error-code=operator --ignore-missing-imports{exclude_option}"
9494
)
9595

9696
if ip_address:

0 commit comments

Comments
 (0)