-
Notifications
You must be signed in to change notification settings - Fork 28
58 lines (52 loc) · 1.6 KB
/
ci.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
name: Tests & Build
on:
push:
branches: [ master, develop, "release/**", "feature/**" ]
pull_request:
branches: [ develop ]
workflow_dispatch:
jobs:
# test-pre-commit:
# timeout-minutes: 5
# # The type of runner that the job will run on
# runs-on: ubuntu-latest
# container: python:3.9
# steps:
# - uses: actions/checkout@v2
#
# - name: Run commit hooks.
# run: |
# pip3 --no-cache-dir install pre-commit
# git --version
# pre-commit run -a
#
test-job:
timeout-minutes: 5
runs-on: ubuntu-latest
# needs: [ test-pre-commit ]
#
steps:
- uses: actions/checkout@v2
# - name: Setup docker-compose
# run: pip install docker-compose
- name: Build
run: |
docker compose build --pull --force-rm d3fend-ontology
- name: Test Owl Load
run: docker compose run --rm d3fend-ontology make test-load-owl
- name: Test TTL Load
run: docker compose run --rm d3fend-ontology make test-load-ttl
- name: Test JSON Load
run: docker compose run --rm d3fend-ontology make test-load-json
- name: Test Load Full
run: docker compose run --rm d3fend-ontology make test-load-full
- name: Test Jena
run: docker compose run --rm d3fend-ontology make test-jena
- name: Test Reasoner
run: docker compose run --rm d3fend-ontology make test-reasoner
- name: Cleanup
run: docker compose down && docker compose rm --force
- uses: actions/upload-artifact@v3
with:
name: d3fend.ttl
path: dist/public/d3fend.ttl