perf: better MIS #145
Workflow file for this run
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
| name: Python thin client CI | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - spark-version: 4.0.3 | |
| scala-version: 2.13 | |
| python-version: "3.12" | |
| java-version: 17 | |
| - spark-version: 4.1.2 | |
| scala-version: 2.13 | |
| python-version: "3.13" | |
| java-version: 17 | |
| runs-on: ubuntu-latest | |
| env: | |
| # define Java options for both official sbt and sbt-extras | |
| JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 | |
| JVM_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 | |
| SPARK_VERSION: ${{ matrix.spark-version }} | |
| SCALA_VERSION: ${{ matrix.scala-version }} | |
| PIP_REQUESTS_TIMEOUT: 100 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: "zulu" | |
| java-version: "${{ matrix.java-version }}" | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.ivy2/cache | |
| key: sbt-ivy-cache-spark-${{ matrix.spark-version}}-scala-${{ matrix.scala-version }} | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install and configure Poetry | |
| uses: snok/install-poetry@v1 | |
| with: | |
| version: 2.1.3 | |
| virtualenvs-create: true | |
| virtualenvs-in-project: false | |
| installer-parallel: true | |
| - name: Build Python package and its dependencies | |
| working-directory: ./python | |
| run: | | |
| poetry install --with=connect --without=dev | |
| poetry run pip install pyspark-client==${{ matrix.spark-version }} | |
| - name: Test SparkConnect | |
| env: | |
| SPARK_CONNECT_MODE_ENABLED: 1 | |
| SPARK_CLIENT_MODE_ENABLED: 1 | |
| working-directory: ./python | |
| run: | | |
| poetry run python dev/run_connect.py ${{ matrix.spark-version }} | |
| poetry run python -m pytest | |
| poetry run python dev/stop_connect.py ${{ matrix.spark-version }} | |