Fix UC setup cache key collisions and local Spark-version switching #5712
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: "Kernel Unity Catalog" | |
| on: | |
| push: | |
| branches: [master, branch-*] | |
| paths: | |
| - 'build.sbt' | |
| - 'version.sbt' | |
| - 'kernel/**/*.scala' | |
| - 'kernel/**/*.java' | |
| - 'storage/**/*.scala' | |
| - 'storage/**/*.java' | |
| - '.github/workflows/kernel_unitycatalog_test.yaml' | |
| pull_request: | |
| branches: [master, branch-*] | |
| paths: | |
| - 'build.sbt' | |
| - 'version.sbt' | |
| - 'kernel/**/*.scala' | |
| - 'kernel/**/*.java' | |
| - 'storage/**/*.scala' | |
| - 'storage/**/*.java' | |
| - '.github/workflows/kernel_unitycatalog_test.yaml' | |
| jobs: | |
| test: | |
| name: "Kernel Unity Catalog Tests" | |
| runs-on: ubuntu-24.04 | |
| env: | |
| SCALA_VERSION: 2.13.16 | |
| steps: | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| - name: install java | |
| uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1 | |
| with: | |
| distribution: "zulu" | |
| java-version: "17" | |
| # kernelUnityCatalog depends on unreleased UC APIs; publish the pinned UC build locally before | |
| # sbt tries to resolve the dependency. | |
| - name: Set up pinned Unity Catalog | |
| uses: ./.github/actions/setup-unitycatalog | |
| - name: Run Unity tests with coverage | |
| run: | | |
| ./build/sbt "++ ${{ env.SCALA_VERSION }}" clean coverage kernelUnityCatalog/test coverageAggregate coverageOff -v | |