Build with Spark 4.1.0-preview1 #146
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.9', '3.12' ] | |
| java-version: [ 17, 21 ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Java ${{ matrix.java-version }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'adopt' | |
| java-version: ${{ matrix.java-version }} | |
| cache: sbt | |
| - uses: sbt/setup-sbt@v1 | |
| with: | |
| sbt-runner-version: 1.9.9 | |
| - 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 for Scala 2.13 (Java 17 and Python 3.12) | |
| if: matrix.java-version == '17' && matrix.python-version == '3.12' | |
| 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 |