Skip to content

Commit ad81dc5

Browse files
zhengruifenghimadripal
authored and
himadripal
committed
[SPARK-49973][INFRA] Upgrade python to 3.11 for non-python tests
### What changes were proposed in this pull request? Upgrade python to 3.11 for non-python tests: `build` and `buf` ### Why are the changes needed? to be consistent with PySpark tests ### Does this PR introduce _any_ user-facing change? no, infra-only ### How was this patch tested? ci ### Was this patch authored or co-authored using generative AI tooling? no Closes apache#48474 from zhengruifeng/infra_py_311. Authored-by: Ruifeng Zheng <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent eaf980a commit ad81dc5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build_and_test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -264,20 +264,20 @@ jobs:
264264
with:
265265
distribution: zulu
266266
java-version: ${{ matrix.java }}
267-
- name: Install Python 3.9
267+
- name: Install Python 3.11
268268
uses: actions/setup-python@v5
269269
# We should install one Python that is higher than 3+ for SQL and Yarn because:
270270
# - SQL component also has Python related tests, for example, IntegratedUDFTestUtils.
271271
# - Yarn has a Python specific test too, for example, YarnClusterSuite.
272272
if: contains(matrix.modules, 'yarn') || (contains(matrix.modules, 'sql') && !contains(matrix.modules, 'sql-')) || contains(matrix.modules, 'connect')
273273
with:
274-
python-version: '3.9'
274+
python-version: '3.11'
275275
architecture: x64
276-
- name: Install Python packages (Python 3.9)
276+
- name: Install Python packages (Python 3.11)
277277
if: (contains(matrix.modules, 'sql') && !contains(matrix.modules, 'sql-')) || contains(matrix.modules, 'connect')
278278
run: |
279-
python3.9 -m pip install 'numpy>=1.20.0' pyarrow pandas scipy unittest-xml-reporting 'lxml==4.9.4' 'grpcio==1.62.0' 'grpcio-status==1.62.0' 'protobuf==4.25.1'
280-
python3.9 -m pip list
279+
python3.11 -m pip install 'numpy>=1.20.0' pyarrow pandas scipy unittest-xml-reporting 'lxml==4.9.4' 'grpcio==1.62.0' 'grpcio-status==1.62.0' 'protobuf==4.25.1'
280+
python3.11 -m pip list
281281
# Run the tests.
282282
- name: Run tests
283283
env: ${{ fromJSON(inputs.envs) }}
@@ -608,14 +608,14 @@ jobs:
608608
with:
609609
input: sql/connect/common/src/main
610610
against: 'https://github.com/apache/spark.git#branch=branch-3.5,subdir=connector/connect/common/src/main'
611-
- name: Install Python 3.9
611+
- name: Install Python 3.11
612612
uses: actions/setup-python@v5
613613
with:
614-
python-version: '3.9'
614+
python-version: '3.11'
615615
- name: Install dependencies for Python CodeGen check
616616
run: |
617-
python3.9 -m pip install 'black==23.9.1' 'protobuf==4.25.1' 'mypy==1.8.0' 'mypy-protobuf==3.3.0'
618-
python3.9 -m pip list
617+
python3.11 -m pip install 'black==23.9.1' 'protobuf==4.25.1' 'mypy==1.8.0' 'mypy-protobuf==3.3.0'
618+
python3.11 -m pip list
619619
- name: Python CodeGen check
620620
run: ./dev/connect-check-protos.py
621621

0 commit comments

Comments
 (0)