Skip to content

update CI to Java 17 #49

update CI to Java 17

update CI to Java 17 #49

name: DSpot - Prettifier CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install Bottleneck tensorflow keras
pip install tensorflow --upgrade --force-reinstall
- name: Build with Maven
run: mvn install -DskipTests
- name: Test with Maven
run: |
export MAVEN_HOME=$(mvn --version | grep "Maven home" | cut -f 3 -d " ")
cd dspot-prettifier && mvn test -DdoIntegrationTests=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error