-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (43 loc) · 1.21 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
jdk: [ 8, 11, 17 ]
runs-on: ubuntu-latest
steps:
- name: Pull Request Checkout
uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
if: github.head_ref != ''
- name: Push Checkout
uses: actions/checkout@v2
if: github.head_ref == ''
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{matrix.jdk}}
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install --user -r ./requirements.txt
- name: Github Environment Setup
run: |
owner=${{ github.repository_owner }}
echo "REPO_SITE=${owner}" >> $GITHUB_ENV
- name: Ontology Dependency Setup & Build
run: ./dependency-setup.sh
- name: Ontology Demo Tests
run: ./test-ontology.sh