Build with Scala 2.13 and Spark 4.1.0 preview3 #161
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: sparkMeasure CI | |
| on: | |
| push: | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| python-version: [ '3.10', '3.13' ] | |
| java-version: [ 17, 21 ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Java ${{ matrix.java-version }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: ${{ matrix.java-version }} | |
| cache: sbt | |
| - uses: sbt/setup-sbt@v1 | |
| with: | |
| sbt-runner-version: 1.11.7 | |
| - name: Build using sbt for all Scala versions supported | |
| run: sbt +package | |
| - name: Run tests for all Scala versions supported | |
| run: sbt +test | |
| - name: Upload sparkMeasure package built with Java 17 (Python == 3.13) | |
| if: matrix.java-version == '17' && matrix.python-version == '3.13' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sparkMeasure package scala 2.13 | |
| path: target/scala-2.13/*.jar | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r python/requirements.txt | |
| - name: Run pytest | |
| run: | | |
| pytest python/sparkmeasure |