Rebecca Wilm | afbcd7f | 2022-11-09 16:46:48 +0100 | [diff] [blame] | 1 | default: |
Marc Kupietz | fc34de6 | 2024-02-01 12:04:27 +0100 | [diff] [blame] | 2 | image: python:3.11 |
Rebecca Wilm | afbcd7f | 2022-11-09 16:46:48 +0100 | [diff] [blame] | 3 | |
| 4 | variables: |
| 5 | PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" |
| 6 | |
| 7 | cache: |
| 8 | paths: |
| 9 | - .cache/pip |
| 10 | - venv/ |
| 11 | |
| 12 | before_script: |
| 13 | - python -m venv venv |
| 14 | - source venv/bin/activate |
| 15 | - export PYTHONPATH=PYTHONPATH:. |
Marc Kupietz | fc34de6 | 2024-02-01 12:04:27 +0100 | [diff] [blame] | 16 | - cp $(find / -name longintrepr.h) /usr/local/include/python3.11/ |
| 17 | - pip install --use-pep517 -r requirements.txt |
Rebecca Wilm | afbcd7f | 2022-11-09 16:46:48 +0100 | [diff] [blame] | 18 | - python -m spacy download de_core_news_lg |
| 19 | - apt update -y |
| 20 | - apt-get install cpanminus -y |
| 21 | - cpanm https://github.com/KorAP/KorAP-XML-CoNLL-U.git |
| 22 | |
| 23 | test-job: |
| 24 | stage: test |
Marc Kupietz | fc34de6 | 2024-02-01 12:04:27 +0100 | [diff] [blame] | 25 | artifacts: |
| 26 | paths: |
| 27 | - rei.spacy.zip |
Marc Kupietz | 13f40bb | 2024-02-01 15:51:37 +0100 | [diff] [blame^] | 28 | - rei.spacy.conllu |
Rebecca Wilm | afbcd7f | 2022-11-09 16:46:48 +0100 | [diff] [blame] | 29 | script: |
| 30 | - mkdir logs |
Marc Kupietz | 13f40bb | 2024-02-01 15:51:37 +0100 | [diff] [blame^] | 31 | - korapxml2conllu rei.zip | python ./systems/parse_spacy_pipe.py | tee rei.spacy.conllu | conllu2korapxml > rei.spacy.zip |