From fa6986bd96019c7b073f3561198f544c5a66895d Mon Sep 17 00:00:00 2001 From: Bastien Le Querrec <blq@laquadrature.net> Date: Wed, 6 Mar 2024 23:50:58 +0100 Subject: [PATCH] =?UTF-8?q?ci:=20reinstallation=20des=20d=C3=A9pendances?= =?UTF-8?q?=20syst=C3=A8me=20entre=20les=20jobs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d6c77a1..e4aa0ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,9 +9,10 @@ stages: install: stage: install - script: - - apt-get update && apt-get install --no-install-recommends -y python3 python3-pip python3-selenium python3-virtualenv chromium-driver make xauth xvfb tesseract-ocr tesseract-ocr-eng tesseract-ocr-fra ocrmypdf + before_script: + - apt-get update && apt-get install --no-install-recommends -y python3 python3-virtualenv - ln -s /usr/bin/python3 /usr/bin/python + script: - virtualenv --python=/usr/bin/python3 . - source bin/activate - pip3 install -r requirements.txt @@ -25,9 +26,12 @@ install: test_ppparis: stage: test needs: [install] + before_script: + - apt-get update && apt-get install --no-install-recommends -y python3 python3-virtualenv chromium-driver make xauth xvfb tesseract-ocr tesseract-ocr-eng tesseract-ocr-fra ocrmypdf + - ln -s /usr/bin/python3 /usr/bin/python script: - source bin/activate - - python3 ./ppparis.py + - python ./ppparis.py only: - main cache: -- GitLab