From b24ae1cc4f7bafa61489dcb2d07a3aefc4ead684 Mon Sep 17 00:00:00 2001 From: Helber Belmiro Date: Thu, 14 Nov 2024 08:19:28 -0300 Subject: [PATCH] chore: Added support for Python 3.13 to tests Signed-off-by: Helber Belmiro --- .github/workflows/backend-visualization.yml | 8 +++- .github/workflows/e2e-test.yml | 48 ++++++++++++++++--- .github/workflows/gcpc-modules-tests.yml | 8 +++- .../kfp-kubernetes-execution-tests.yml | 8 +++- .../workflows/kfp-kubernetes-library-test.yml | 3 +- .github/workflows/kfp-samples.yml | 9 +++- .github/workflows/kfp-sdk-runtime-tests.yml | 2 +- .github/workflows/periodic.yml | 8 +++- .github/workflows/sdk-component-yaml.yml | 8 +++- .github/workflows/sdk-docformatter.yml | 8 +++- .github/workflows/sdk-execution.yml | 8 +++- .github/workflows/sdk-isort.yml | 8 +++- .github/workflows/sdk-upgrade.yml | 8 +++- .github/workflows/sdk-yapf.yml | 9 +++- .github/workflows/upgrade-test.yml | 8 +++- api/v2alpha1/python/setup.py | 2 +- 16 files changed, 130 insertions(+), 23 deletions(-) diff --git a/.github/workflows/backend-visualization.yml b/.github/workflows/backend-visualization.yml index 7038278f619..6c417af2dd0 100644 --- a/.github/workflows/backend-visualization.yml +++ b/.github/workflows/backend-visualization.yml @@ -13,6 +13,12 @@ on: jobs: backend-visualization-test: runs-on: ubuntu-latest + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -20,7 +26,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: ${{matrix.python.version}} - name: Run tests run: ./test/presubmit-backend-visualization.sh diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 4273b9b2fbb..1c5bc172d0d 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -19,6 +19,12 @@ on: jobs: initialization-tests-v1: runs-on: ubuntu-latest + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -26,7 +32,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Create KFP cluster uses: ./.github/actions/kfp-cluster @@ -47,6 +53,12 @@ jobs: initialization-tests-v2: runs-on: ubuntu-latest + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -54,7 +66,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Create KFP cluster uses: ./.github/actions/kfp-cluster @@ -75,6 +87,12 @@ jobs: api-integration-tests-v1: runs-on: ubuntu-latest + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -82,7 +100,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Create KFP cluster uses: ./.github/actions/kfp-cluster @@ -103,6 +121,12 @@ jobs: api-integration-tests-v2: runs-on: ubuntu-latest + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -110,7 +134,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Create KFP cluster uses: ./.github/actions/kfp-cluster @@ -131,6 +155,12 @@ jobs: frontend-integration-test: runs-on: ubuntu-latest + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -138,7 +168,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Create KFP cluster uses: ./.github/actions/kfp-cluster @@ -165,6 +195,12 @@ jobs: basic-sample-tests: runs-on: ubuntu-latest + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -172,7 +208,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Create KFP cluster uses: ./.github/actions/kfp-cluster diff --git a/.github/workflows/gcpc-modules-tests.yml b/.github/workflows/gcpc-modules-tests.yml index 7ce9f4145e3..2a580a2c172 100644 --- a/.github/workflows/gcpc-modules-tests.yml +++ b/.github/workflows/gcpc-modules-tests.yml @@ -12,6 +12,12 @@ on: jobs: all-gcpc-tests: runs-on: ubuntu-24.04 + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -19,7 +25,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: apt-get update run: sudo apt-get update diff --git a/.github/workflows/kfp-kubernetes-execution-tests.yml b/.github/workflows/kfp-kubernetes-execution-tests.yml index d2521a7a317..8880e37b172 100644 --- a/.github/workflows/kfp-kubernetes-execution-tests.yml +++ b/.github/workflows/kfp-kubernetes-execution-tests.yml @@ -15,6 +15,12 @@ on: jobs: kfp-kubernetes-execution-tests: runs-on: ubuntu-24.04 + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -22,7 +28,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: ${{matrix.python.version}} - name: Create KFP cluster uses: ./.github/actions/kfp-cluster diff --git a/.github/workflows/kfp-kubernetes-library-test.yml b/.github/workflows/kfp-kubernetes-library-test.yml index aeaa341cd2c..f1a7d103ceb 100644 --- a/.github/workflows/kfp-kubernetes-library-test.yml +++ b/.github/workflows/kfp-kubernetes-library-test.yml @@ -20,7 +20,8 @@ jobs: { 'version': '3.9' }, { 'version': '3.10' }, { 'version': '3.11' }, - { 'version': '3.12' } + { 'version': '3.12' }, + { 'version': '3.13' } ] steps: - name: Checkout code diff --git a/.github/workflows/kfp-samples.yml b/.github/workflows/kfp-samples.yml index 83643522f7c..5c3ded84883 100644 --- a/.github/workflows/kfp-samples.yml +++ b/.github/workflows/kfp-samples.yml @@ -17,7 +17,12 @@ on: jobs: samples: runs-on: ubuntu-latest - + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v2 @@ -25,7 +30,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Create KFP cluster uses: ./.github/actions/kfp-cluster diff --git a/.github/workflows/kfp-sdk-runtime-tests.yml b/.github/workflows/kfp-sdk-runtime-tests.yml index 6655227a20d..3403936c161 100644 --- a/.github/workflows/kfp-sdk-runtime-tests.yml +++ b/.github/workflows/kfp-sdk-runtime-tests.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-24.04 strategy: matrix: - python: ['3.9', '3.10', '3.11', '3.12'] + python: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml index be95ad737e5..4e8f9b56040 100644 --- a/.github/workflows/periodic.yml +++ b/.github/workflows/periodic.yml @@ -7,13 +7,19 @@ on: jobs: run_tests: runs-on: ubuntu-latest + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Create KFP cluster uses: ./.github/actions/kfp-cluster - name: Port forward kfp apiserver diff --git a/.github/workflows/sdk-component-yaml.yml b/.github/workflows/sdk-component-yaml.yml index 11adbcfe1f3..ec8afe6ec74 100644 --- a/.github/workflows/sdk-component-yaml.yml +++ b/.github/workflows/sdk-component-yaml.yml @@ -15,6 +15,12 @@ on: jobs: test-component-yaml-kfp: runs-on: ubuntu-24.04 + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -22,7 +28,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: apt-get update run: sudo apt-get update diff --git a/.github/workflows/sdk-docformatter.yml b/.github/workflows/sdk-docformatter.yml index 12b1c29d705..375e8935aed 100644 --- a/.github/workflows/sdk-docformatter.yml +++ b/.github/workflows/sdk-docformatter.yml @@ -13,6 +13,12 @@ on: jobs: test-docformatter-kfp-sdk: runs-on: ubuntu-24.04 + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -20,7 +26,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Run docformatter tests run: ./test/presubmit-docformatter-sdk.sh diff --git a/.github/workflows/sdk-execution.yml b/.github/workflows/sdk-execution.yml index 9f4b93906ab..7e7ed1a5939 100644 --- a/.github/workflows/sdk-execution.yml +++ b/.github/workflows/sdk-execution.yml @@ -14,6 +14,12 @@ on: jobs: sdk-execution-tests: runs-on: ubuntu-24.04 + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -21,7 +27,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Create KFP cluster uses: ./.github/actions/kfp-cluster diff --git a/.github/workflows/sdk-isort.yml b/.github/workflows/sdk-isort.yml index 527cff1096a..099942b9fbe 100644 --- a/.github/workflows/sdk-isort.yml +++ b/.github/workflows/sdk-isort.yml @@ -13,6 +13,12 @@ on: jobs: test-isort-kfp-sdk: runs-on: ubuntu-24.04 + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -20,7 +26,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Run isort tests run: ./test/presubmit-isort-sdk.sh diff --git a/.github/workflows/sdk-upgrade.yml b/.github/workflows/sdk-upgrade.yml index e35b7358ceb..6889df10416 100644 --- a/.github/workflows/sdk-upgrade.yml +++ b/.github/workflows/sdk-upgrade.yml @@ -13,6 +13,12 @@ on: jobs: test-upgrade-kfp-sdk: runs-on: ubuntu-24.04 + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -20,7 +26,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Run SDK upgrade tests run: ./test/presubmit-test-sdk-upgrade.sh diff --git a/.github/workflows/sdk-yapf.yml b/.github/workflows/sdk-yapf.yml index b1c46085ea3..a22ab03c58f 100644 --- a/.github/workflows/sdk-yapf.yml +++ b/.github/workflows/sdk-yapf.yml @@ -19,7 +19,12 @@ on: jobs: yapf-sdk: runs-on: ubuntu-latest - + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v2 @@ -27,7 +32,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: ${{matrix.python.version}} - name: Install dependencies run: pip install yapf diff --git a/.github/workflows/upgrade-test.yml b/.github/workflows/upgrade-test.yml index 090f23c1794..ee54351a7a4 100644 --- a/.github/workflows/upgrade-test.yml +++ b/.github/workflows/upgrade-test.yml @@ -14,6 +14,12 @@ on: jobs: upgrade-test: runs-on: ubuntu-latest + strategy: + matrix: + python: [ + { 'version': '3.9' }, + { 'version': '3.13' } + ] steps: - name: Checkout code uses: actions/checkout@v4 @@ -21,7 +27,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{matrix.python.version}} - name: Create KFP cluster uses: ./.github/actions/kfp-cluster diff --git a/api/v2alpha1/python/setup.py b/api/v2alpha1/python/setup.py index 53ad2bc82e7..33061eab284 100644 --- a/api/v2alpha1/python/setup.py +++ b/api/v2alpha1/python/setup.py @@ -25,7 +25,7 @@ author_email='kubeflow-pipelines@google.com', url='https://github.com/kubeflow/pipelines', packages=setuptools.find_namespace_packages(include=['kfp.*']), - python_requires='>=3.9.0,<3.13.0', + python_requires='>=3.9.0', install_requires=['protobuf>=4.21.1,<5'], include_package_data=True, license='Apache 2.0',