-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.56 KB
/
ci_tests.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
47
48
49
50
51
52
53
54
55
name: EMMO check
on: [pull_request]
jobs:
emmocheck:
name: EMMO Check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install EMMOntoPy
run: |
python -m pip install --upgrade pip
pip install -U setuptools wheel
pip install -r requirements.txt
- name: Run EMMO Check - battery
run: |
if [ -f "battery.ttl" ]; then
emmocheck --verbose --url-from-catalog \
--skip test_namespace \
--skip test_quantity_dimension \
--configfile=.github/utils/emmocheck_config.yml \
battery.ttl
else
echo "battery.ttl not found!"
exit 1
fi
- name: Run EMMO Check - batteryquantities
run: |
if [ -f "batteryquantities.ttl" ]; then
emmocheck --verbose --url-from-catalog \
--skip test_namespace \
--skip test_quantity_dimension \
--configfile=.github/utils/emmocheck_config.yml \
batteryquantities.ttl
elif [ -f "shared/battery-quantities.ttl" ]; then
emmocheck --verbose --url-from-catalog \
--skip test_namespace \
--skip test_quantity_dimension \
--configfile=.github/utils/emmocheck_config.yml \
shared/battery-quantities.ttl
else
echo "batteryquantities.ttl or shared/battery-quantities.ttl not found!"
exit 1
fi