-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (48 loc) · 1.61 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 - electrochemistry
run: |
if [ -f "electrochemistry.ttl" ]; then
emmocheck --verbose --url-from-catalog \
--skip test_namespace \
--skip test_quantity_dimension \
--configfile=.github/utils/emmocheck_config.yml \
electrochemistry.ttl
else
echo "electrochemistry.ttl not found!"
exit 1
fi
- name: Run EMMO Check - electrochemicalquantities
run: |
if [ -f "electrochemicalquantities.ttl" ]; then
emmocheck --verbose --url-from-catalog \
--skip test_namespace \
--skip test_quantity_dimension \
--configfile=.github/utils/emmocheck_config.yml \
electrochemicalquantities.ttl
elif [ -f "modules/quantities.ttl" ]; then
emmocheck --verbose --url-from-catalog \
--skip test_namespace \
--skip test_quantity_dimension \
--configfile=.github/utils/emmocheck_config.yml \
modules/quantities.ttl
else
echo "electrochemicalquantities.ttl or modules/quantities.ttl not found!"
exit 1
fi