From 3db1ed61ce94ca61d8c66c1d11cef4297605ff35 Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Mon, 22 Apr 2024 16:22:22 -0400
Subject: [PATCH] ci: use python:3.11-slim image

---
 .gitlab-ci.yml | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 67fae9b1..70c5ea94 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,6 +18,7 @@ build-openapi-scheme:
   variables:
     OPENAPI_JSON: ./public/api.json
   before_script:
+    # we do this, because YAML anchors are not supported when executing locally
     - apt-get update
     - apt-get install -y gcc libldap2-dev libsasl2-dev libmagic-dev
     - pip install --upgrade pip
@@ -33,13 +34,14 @@ build-openapi-scheme:
 
 run_test_cases:
   stage: test
-  image: python:3.11
+  image: python:3.11-slim
   before_script:
-  - apt-get -qq update
-  - apt-get -y install curl pip libsasl2-dev libldap2-dev libssl-dev
-  - python3 -m pip install --upgrade pip
-  - pip install poetry
-  - poetry install --no-interaction
+    # we do this, because YAML anchors are not supported when executing locally
+    - apt-get -qq update
+    - apt-get install -y gcc libldap2-dev libsasl2-dev libmagic-dev
+    - python3 -m pip install --upgrade pip
+    - python3 -m pip install poetry
+    - poetry install --no-interaction
   script:
     - mkdir logs
     - make coverage
-- 
GitLab