From 6402fd860c5eeb460575a913d869a6484fad1320 Mon Sep 17 00:00:00 2001
From: Daniel Schadt <kingdread@gmx.de>
Date: Fri, 14 Apr 2023 22:31:15 +0200
Subject: CI: install Rust on pypy image

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1725814..8562f11 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,7 +28,11 @@ test:
 
 test-pypy:
   image: pypy:3
+  # nh3 does not have wheels prepared for pypy, so we need a working Rust
+  # compiler to compile the module:
   script:
+    - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh /dev/stdin -y --profile=minimal
+    - source "$HOME/.cargo/env"
     - pip install poetry && pip install "playwright=="$(poetry show playwright | grep version | cut -f 2 -d ":" | tr -d " ")
     - playwright install firefox
     - playwright install-deps
-- 
cgit v1.2.3