Skip to content

IDMP-735 - minor tweaks to the mapping #1245

IDMP-735 - minor tweaks to the mapping

IDMP-735 - minor tweaks to the mapping #1245

# This workflow will run spellchecking for IDMP project
name: IDMP Spellcheck Test
on:
push:
pull_request:
branches: ["master"]
permissions:
contents: read
jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r etc/testing/spelling/requirements.txt
- name: Install robot
run: |
sudo wget --no-verbose -m -nH -nd -P /usr/bin https://raw.githubusercontent.com/ontodev/robot/master/bin/robot
sudo wget --no-verbose -m -nH -nd -P /usr/bin https://github.com/ontodev/robot/releases/latest/download/robot.jar
sudo chmod +x /usr/bin/robot
- name: Merge all IDMP ontologies with robot
run: |
robot merge --input AboutIDMPDev-ReferenceIndividuals.rdf --output AboutIDMPDev-ReferenceIndividuals.ttl --catalog /home/runner/work/idmp/idmp/catalog-v001.xml
- name: Run spellchecker
run: |
python etc/testing/spelling/onto_spellchecker.py --ontology /home/runner/work/idmp/idmp/AboutIDMPDev-ReferenceIndividuals.ttl --spell etc/testing/spelling/domain_specific_spellings.json --filter spec.pistoiaalliance.org
if [ $? != 0 ];
then
exit $?
fi
- name: Archive logfile
uses: actions/upload-artifact@v4
if: always()
with:
name: logifle
path: spellcheck_log.log