blob: 79e24f5c1790696b0ce018d1fd3e3d6c7b849f59 [file] [log] [blame]
Rebecca Wilmafbcd7f2022-11-09 16:46:48 +01001default:
Marc Kupietzfc34de62024-02-01 12:04:27 +01002 image: python:3.11
Rebecca Wilmafbcd7f2022-11-09 16:46:48 +01003
4variables:
5 PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
6
7cache:
8 paths:
9 - .cache/pip
10 - venv/
11
12before_script:
Marc Kupietz59360962024-02-01 15:51:56 +010013 - perl -v
Rebecca Wilmafbcd7f2022-11-09 16:46:48 +010014 - python -m venv venv
15 - source venv/bin/activate
16 - export PYTHONPATH=PYTHONPATH:.
Marc Kupietzfc34de62024-02-01 12:04:27 +010017 - cp $(find / -name longintrepr.h) /usr/local/include/python3.11/
18 - pip install --use-pep517 -r requirements.txt
Rebecca Wilmafbcd7f2022-11-09 16:46:48 +010019 - python -m spacy download de_core_news_lg
20 - apt update -y
21 - apt-get install cpanminus -y
22 - cpanm https://github.com/KorAP/KorAP-XML-CoNLL-U.git
23
24test-job:
25 stage: test
Marc Kupietzfc34de62024-02-01 12:04:27 +010026 artifacts:
27 paths:
28 - rei.spacy.zip
Marc Kupietz13f40bb2024-02-01 15:51:37 +010029 - rei.spacy.conllu
Rebecca Wilmafbcd7f2022-11-09 16:46:48 +010030 script:
31 - mkdir logs
Marc Kupietz13f40bb2024-02-01 15:51:37 +010032 - korapxml2conllu rei.zip | python ./systems/parse_spacy_pipe.py | tee rei.spacy.conllu | conllu2korapxml > rei.spacy.zip