From 176464d25879fa76151715a5c7a94425e12d4e6a Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Thu, 28 Dec 2023 22:03:00 +0200
Subject: [PATCH] CI: Small fix.

---
 .gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bc2bc32..5d80eee 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,7 @@ pre-commit-try-repo:
   image: registry.shore.co.il/ci-images:pre-commit
   tags: [ns4.shore.co.il]
   variables:
+    PIP_CONSTRAINT: /tmp/constraint.txt
     XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
   before_script:
     - >-
@@ -22,6 +23,9 @@ pre-commit-try-repo:
     # yamllint enable rule:line-length
     - apt-get update
     - apt-get install -y terraform packer
+    # See https://github.com/yaml/pyyaml/issues/736 for the reason for this
+    # workaround. Needed until Ansible doesn't require pyyaml<6.
+    - echo 'Cython < 3.0' > "$PIP_CONSTRAINT"
   script:
     - pre-commit try-repo --all-files ./
   cache:
-- 
GitLab