From aba89000d31c555937ecd606255a1826e5e837ef Mon Sep 17 00:00:00 2001 From: hayesall Date: Mon, 6 Jun 2022 13:05:45 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20`ci.yml`=20for=20Java=20bu?= =?UTF-8?q?ild/test=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is pretty basic at the moment, the main unit test just tests whether or not learning + inference crashes at some point for a copy of the Toy-Cancer dataset. --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fbbd7d2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: "Java CI" +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + name: Test JDK ${{ matrix.java }}-${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + java: [8, 11] + max-parallel: 4 + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'adopt' + + - name: Setup and execute Gradle test + uses: gradle/gradle-build-action@v1 + with: + arguments: test