From 9fbf095f2078b0f56584f9562d274e4b7ad993de Mon Sep 17 00:00:00 2001 From: Yuki Iwai Date: Wed, 25 Jan 2023 02:47:25 +0900 Subject: [PATCH] Run e2e with various Python versions to verify Python SDK (#2092) Signed-off-by: Yuki Iwai Signed-off-by: Yuki Iwai --- .github/workflows/e2e-test-darts-cifar10.yaml | 1 + .github/workflows/e2e-test-enas-cifar10.yaml | 1 + .github/workflows/e2e-test-mxnet-mnist.yaml | 1 + .github/workflows/e2e-test-pytorch-mnist.yaml | 1 + .github/workflows/template-setup-e2e-test/action.yaml | 7 ++++++- 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-test-darts-cifar10.yaml b/.github/workflows/e2e-test-darts-cifar10.yaml index 6e65767d25b..28404211701 100644 --- a/.github/workflows/e2e-test-darts-cifar10.yaml +++ b/.github/workflows/e2e-test-darts-cifar10.yaml @@ -24,6 +24,7 @@ jobs: uses: ./.github/workflows/template-setup-e2e-test with: kubernetes-version: ${{ matrix.kubernetes-version }} + python-version: "3.7" - name: Run e2e test with ${{ matrix.experiments }} experiments uses: ./.github/workflows/template-e2e-test diff --git a/.github/workflows/e2e-test-enas-cifar10.yaml b/.github/workflows/e2e-test-enas-cifar10.yaml index d3e6be6e7b2..c33d3f9b019 100644 --- a/.github/workflows/e2e-test-enas-cifar10.yaml +++ b/.github/workflows/e2e-test-enas-cifar10.yaml @@ -24,6 +24,7 @@ jobs: uses: ./.github/workflows/template-setup-e2e-test with: kubernetes-version: ${{ matrix.kubernetes-version }} + python-version: "3.8" - name: Run e2e test with ${{ matrix.experiments }} experiments uses: ./.github/workflows/template-e2e-test diff --git a/.github/workflows/e2e-test-mxnet-mnist.yaml b/.github/workflows/e2e-test-mxnet-mnist.yaml index ad3a440511e..ddce6692776 100644 --- a/.github/workflows/e2e-test-mxnet-mnist.yaml +++ b/.github/workflows/e2e-test-mxnet-mnist.yaml @@ -24,6 +24,7 @@ jobs: uses: ./.github/workflows/template-setup-e2e-test with: kubernetes-version: ${{ matrix.kubernetes-version }} + python-version: "3.9" - name: Run e2e test with ${{ matrix.experiments }} experiments uses: ./.github/workflows/template-e2e-test diff --git a/.github/workflows/e2e-test-pytorch-mnist.yaml b/.github/workflows/e2e-test-pytorch-mnist.yaml index 8a16ac86984..c67f21f8bc0 100644 --- a/.github/workflows/e2e-test-pytorch-mnist.yaml +++ b/.github/workflows/e2e-test-pytorch-mnist.yaml @@ -24,6 +24,7 @@ jobs: uses: ./.github/workflows/template-setup-e2e-test with: kubernetes-version: ${{ matrix.kubernetes-version }} + python-version: "3.10" - name: Run e2e test with ${{ matrix.experiments }} experiments uses: ./.github/workflows/template-e2e-test diff --git a/.github/workflows/template-setup-e2e-test/action.yaml b/.github/workflows/template-setup-e2e-test/action.yaml index ed7af516e6f..090ec71b1cf 100644 --- a/.github/workflows/template-setup-e2e-test/action.yaml +++ b/.github/workflows/template-setup-e2e-test/action.yaml @@ -6,6 +6,11 @@ inputs: kubernetes-version: required: true description: kubernetes version + python-version: + required: false + description: Python version + # Most latest supporting version + default: "3.10" runs: using: composite @@ -25,7 +30,7 @@ runs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{ inputs.python-version }} - name: Install Katib SDK shell: bash