Switch spark connector to use Weaviate Java client6 #329
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: PR Checks | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| jobs: | |
| scala-integration-tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| distribution: [ 'zulu', 'temurin' ] | |
| java: [ '17', '21' ] | |
| os: [ 'ubuntu-latest' ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: ${{ matrix.distribution }} | |
| java-version: ${{ matrix.java }} | |
| - uses: sbt/setup-sbt@v1 | |
| - run: rm .sbtopts | |
| if: ${{ matrix.java }} == "8" | |
| - name: Build, Unit Test and Scala Spark Integration tests | |
| run: sbt -v +test | |
| pyspark-integration-tests: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - uses: sbt/setup-sbt@v1 | |
| - name: Get release version | |
| run: | | |
| version=$(cat version.sbt | cut -d '"' -f2) | |
| echo "version=$version" >> $GITHUB_ENV | |
| - name: Create jar with all dependencies included | |
| run: | | |
| sbt +assembly | |
| test -f ./target/scala-2.13/spark-connector-assembly-${{ env.version }}.jar | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| cache: 'pip' | |
| - name: Install Python dependencies | |
| run: pip install -r src/test/python/requirements.txt | |
| - name: Run pyspark integration tests | |
| run: pytest |