| default: |
| image: python:3.12-bookworm |
| |
| variables: |
| PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" |
| |
| cache: |
| paths: |
| - .cache/pip |
| - venv/ |
| |
| before_script: |
| - perl -v |
| - python -m venv venv |
| - source venv/bin/activate |
| - export PYTHONPATH=PYTHONPATH:. |
| - venv/bin/pip install --upgrade pip |
| - pip install -r requirements.txt |
| - python -m spacy download de_core_news_lg |
| - apt update -y |
| - apt-get install -y cpanminus git |
| - cpanm https://github.com/KorAP/KorAP-XML-CoNLL-U.git |
| |
| test-job: |
| stage: test |
| artifacts: |
| paths: |
| - rei.spacy.zip |
| - rei.spacy.conllu |
| script: |
| - mkdir logs |
| - korapxml2conllu rei.zip | python ./systems/parse_spacy_pipe.py | tee rei.spacy.conllu | conllu2korapxml > rei.spacy.zip |
| - (! grep -E '^0' ./rei.spacy.conllu) |