Update GitHub actions workflow for Java 21 #75
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: build-and-test | |
| on: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: zulu | |
| java-version: 21.0.2 | |
| java-package: jdk+fx | |
| cache: sbt | |
| - uses: sbt/setup-sbt@v1 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| - name: Install Python 3 libraries | |
| run: pip3 install numpy scikit-learn | |
| - name: Build and Test | |
| run: | | |
| sbt -v update compile | |
| sbt -v test |