-
Notifications
You must be signed in to change notification settings - Fork 10
79 lines (64 loc) · 2.06 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CI tests
on: [push]
jobs:
emmocheck:
name: EMMO Check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install EMMOntoPy
run: |
python -m pip install --upgrade pip
pip install -U setuptools wheel
pip install -r requirements.txt
- name: Run EMMO Check
run: |
emmocheck --verbose --check-imported --url-from-catalog \
--skip test_namespace \
--skip test_quantity_dimension \
--configfile=.github/utils/emmocheck_config.yml \
battinfo.ttl
documentation-build:
name: Documentation
runs-on: ubuntu-latest
env:
ONTODOC_DIR: doc/ontodoc
TMP_DIR: tmp
PAGES_DIR: gh-pages
PUBLISH_ONTOLOGIES_DIR: ontology
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install pandoc 2.1.2
run: |
sudo apt-get update
#sudo apt-get install pandoc # we need v2.1.2
wget https://github.com/jgm/pandoc/releases/download/2.1.2/pandoc-2.1.2-1-amd64.deb
sudo apt-get install -y ./pandoc-2.1.2-1-amd64.deb
- name: Install other dependencies
run: |
sudo apt-get update
sudo apt-get install -y graphviz texlive-xetex texlive-latex-extra
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools wheel
pip install -r requirements.txt
- name: Setup git identity
run: |
cd ${GITHUB_WORKSPACE}
git config --global user.email "${GIT_USER_EMAIL}"
git config --global user.name "${GIT_USER_NAME}"
- name: Publish ontologies
run: python ${GITHUB_WORKSPACE}/.github/utils/publish_ontologies.py
- name: Update GitHub Pages
run: ${GITHUB_WORKSPACE}/${ONTODOC_DIR}/update-pages.sh TEST