From 93ed2a0efaaf94ff6853ce405f30217ae81cf9b0 Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Tue, 3 Oct 2023 21:50:09 -0700 Subject: [PATCH] [SPARK-45410][INFRA] Add Python GitHub Action Daily Job --- .github/workflows/build_and_test.yml | 3 +- .github/workflows/build_python.yml | 44 ++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build_python.yml diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 398b07c53fba7..6d0ffdd49713b 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -55,6 +55,7 @@ jobs: runs-on: ubuntu-22.04 env: GITHUB_PREV_SHA: ${{ github.event.before }} + PYTHON: 'python3.9' outputs: required: ${{ steps.set-outputs.outputs.required }} image_url: >- @@ -447,7 +448,7 @@ jobs: export SKIP_PACKAGING=false echo "Python Packaging Tests Enabled!" fi - ./dev/run-tests --parallelism 1 --modules "$MODULES_TO_TEST" + ./dev/run-tests --parallelism 1 --modules "$MODULES_TO_TEST" --python-executables "$PYTHON" - name: Upload coverage to Codecov if: fromJSON(inputs.envs).PYSPARK_CODECOV == 'true' uses: codecov/codecov-action@v2 diff --git a/.github/workflows/build_python.yml b/.github/workflows/build_python.yml new file mode 100644 index 0000000000000..503f98294a114 --- /dev/null +++ b/.github/workflows/build_python.yml @@ -0,0 +1,44 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +name: "Python (master, Hadoop 3, JDK 17, Scala 2.13)" + +on: + schedule: + - cron: '0 15 * * *' + +jobs: + run-build: + permissions: + packages: write + name: Run + uses: ./.github/workflows/build_and_test.yml + if: github.repository == 'apache/spark' + with: + java: 17 + branch: master + hadoop: hadoop3 + envs: >- + { + "PYTHON": "pypy3,python3.8", + } + jobs: >- + { + "pyspark": "true", + }