blob: d2b7a3c717a8b6cd7c476300d0ea208a08ce3ad0 [file] [log] [blame]
default:
image: python:3.11
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:.
- cp $(find / -name longintrepr.h) /usr/local/include/python3.11/
- pip install --use-pep517 -r requirements.txt
- python -m spacy download de_core_news_lg
- apt update -y
- apt-get install cpanminus -y
- 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)