CI: Fix build and upgrade spacy and python
Upgrades as far as apparently possible: Python 3.11 and Spacy 2.3.9
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4de9b84..3917ca3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,5 @@
default:
- image: python:3.6
+ image: python:3.11
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
@@ -13,7 +13,8 @@
- python -m venv venv
- source venv/bin/activate
- export PYTHONPATH=PYTHONPATH:.
- - pip install -r requirements.txt
+ - 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
@@ -21,6 +22,9 @@
test-job:
stage: test
+ artifacts:
+ paths:
+ - rei.spacy.zip
script:
- mkdir logs
- korapxml2conllu rei.zip | python ./systems/parse_spacy_pipe.py | conllu2korapxml > rei.spacy.zip
diff --git a/requirements.txt b/requirements.txt
index cb41a23..4e3502d 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,5 @@
pip
wheel
-spacy==2.3.2
+thinc
+spacy==2.3.9
germalemma