blob: 3175cb585ac77a889295fc354e570c90c03abd29 [file] [log] [blame]
Rebecca Wilmafbcd7f2022-11-09 16:46:48 +01001default:
Marc Kupietzb1c30b22024-02-05 07:03:51 +01002 image: python:3.12-bookworm
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 Kupietz1f7dd6e2024-02-05 06:45:01 +010017 - venv/bin/pip install --upgrade pip
18 - pip install -r requirements.txt
Rebecca Wilmafbcd7f2022-11-09 16:46:48 +010019 - python -m spacy download de_core_news_lg
20 - apt update -y
Marc Kupietzb1c30b22024-02-05 07:03:51 +010021 - apt-get install -y cpanminus git
Rebecca Wilmafbcd7f2022-11-09 16:46:48 +010022 - 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
Marc Kupietz0e6c5462024-02-01 16:33:57 +010033 - (! grep -E '^0' ./rei.spacy.conllu)