Bump actions/checkout from 2 to 4 #175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI tests | |
on: [push] | |
jobs: | |
emmocheck: | |
name: EMMO Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- 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 --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@v4 | |
- 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 |