[SPARK-59455][PYTHON] Move Arrow-to-pandas batch conversion into Arro… #23429
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # 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: "Build" | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| jobs: | |
| check-commit-count: | |
| name: Check commit count | |
| runs-on: ubuntu-slim | |
| permissions: | |
| contents: read | |
| outputs: | |
| should-run: ${{ steps.count.outputs.should-run }} | |
| steps: | |
| - name: Check out the full branch history | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check whether this is every tenth commit | |
| id: count | |
| run: | | |
| count=$(git rev-list --count HEAD) | |
| remainder=$((count % 10)) | |
| if ((remainder == 0)); then | |
| should_run=true | |
| icon=":white_check_mark:" | |
| title="Commit count matched" | |
| details="Commit count $count is divisible by 10." | |
| else | |
| should_run=false | |
| icon=":pause_button:" | |
| title="Commit count not matched" | |
| details="Commit count $count is not divisible by 10." | |
| fi | |
| echo "should-run=$should_run" >> "$GITHUB_OUTPUT" | |
| echo "Branch: $GITHUB_REF_NAME" | |
| echo "Commit: $GITHUB_SHA" | |
| echo "Commit count: $count" | |
| echo "Remainder: $remainder" | |
| echo "Should run: $should_run" | |
| echo "Details: $details" | |
| echo "::notice title=$title::$details" | |
| echo "### $icon Commit count check" >> "$GITHUB_STEP_SUMMARY" | |
| echo "" >> "$GITHUB_STEP_SUMMARY" | |
| echo "- Branch: $GITHUB_REF_NAME" >> "$GITHUB_STEP_SUMMARY" | |
| echo "- Commit: $GITHUB_SHA" >> "$GITHUB_STEP_SUMMARY" | |
| echo "- Commit count: $count" >> "$GITHUB_STEP_SUMMARY" | |
| echo "- Remainder: $remainder" >> "$GITHUB_STEP_SUMMARY" | |
| echo "- Should run: $should_run" >> "$GITHUB_STEP_SUMMARY" | |
| echo "- Details: $details" >> "$GITHUB_STEP_SUMMARY" | |
| call-build-and-test: | |
| permissions: | |
| packages: write | |
| name: Run | |
| needs: check-commit-count | |
| if: >- | |
| github.repository != 'apache/spark' | |
| || needs.check-commit-count.outputs.should-run == 'true' | |
| uses: ./.github/workflows/build_and_test.yml |