Skip to content

Java tests

Java tests #175

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: Java tests
on:
schedule:
- cron: '10 2 * * *'
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
name: java tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['macos-latest', 'ubuntu-20.04']
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install java
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Install python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Get build dependencies
working-directory: ./dev
run: python -m pip install -r dev-requirements.txt
- name: Compile the source code
run: python setup.py build_ext --inplace --force
- name: test the source code
run: mvn test