Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e103f77

Browse files
committed
Add Python 3.11 for GHA python tests
Update python minor version Add py311 to python tests
1 parent ed93a34 commit e103f77

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/build_wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
env:
5050
EVENT_NAME: ${{ github.event_name }}
51-
PY_VERSIONS_FULL: "cp37-* cp38-* cp39-* cp310-*"
51+
PY_VERSIONS_FULL: "cp37-* cp38-* cp39-* cp310-* cp311-*"
5252
outputs:
5353
gcp-variables-set: ${{ steps.check_gcp_variables.outputs.gcp-variables-set }}
5454
py-versions-full: ${{ steps.set-py-versions.outputs.py-versions-full }}

.github/workflows/python_tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ jobs:
105105
{"py_ver": "3.8", "tox_env": "py38"},
106106
{"py_ver": "3.9", "tox_env": "py39"},
107107
{"py_ver": "3.10", "tox_env": "py310" },
108+
{ "py_ver": "3.11", "tox_env": "py311" },
108109
]
109110
steps:
110111
- name: Checkout code
@@ -140,7 +141,7 @@ jobs:
140141
fail-fast: false
141142
matrix:
142143
os: [ubuntu-latest, macos-latest, windows-latest]
143-
python: ["3.7", "3.8", "3.9", "3.10"]
144+
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
144145
steps:
145146
- name: Checkout code
146147
uses: actions/checkout@v3
@@ -168,7 +169,7 @@ jobs:
168169
fail-fast: false
169170
matrix:
170171
os: [ubuntu-latest, macos-latest, windows-latest]
171-
python: ["3.7", "3.8", "3.9", "3.10"]
172+
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
172173
steps:
173174
- name: Checkout code
174175
uses: actions/checkout@v3

sdks/python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def get_portability_package_data():
169169

170170
python_requires = '>=3.7'
171171

172-
if sys.version_info.major == 3 and sys.version_info.minor >= 11:
172+
if sys.version_info.major == 3 and sys.version_info.minor >= 12:
173173
warnings.warn(
174174
'This version of Apache Beam has not been sufficiently tested on '
175175
'Python %s.%s. You may encounter bugs or missing features.' %

0 commit comments

Comments
 (0)