Skip to content

Commit

Permalink
[SPARK-45410][INFRA] Add Python GitHub Action Daily Job
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjoon-hyun committed Oct 4, 2023
1 parent d86208d commit 93ed2a0
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >-
Expand Down Expand Up @@ -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
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/build_python.yml
Original file line number Diff line number Diff line change
@@ -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",
}

0 comments on commit 93ed2a0

Please sign in to comment.