From 84ff111ac50d7d7f22bc400ef0de87299645df96 Mon Sep 17 00:00:00 2001
From: duyanhehe <duyanhex@gmail.com>
Date: Thu, 27 Mar 2025 11:44:21 +0700
Subject: [PATCH] fix cicd

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6aa8497..f16b68d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,14 @@ cache:
   policy: pull-push
 
 before_script:
+  - Set-ExecutionPolicy Bypass -Scope Process -Force
+  - if (-Not (Test-Path "C:\ProgramData\chocolatey\bin\choco.exe")) {
+    [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
+    iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
+    }
+  - refreshenv
+  - if (-Not (Get-Command python -ErrorAction SilentlyContinue)) { choco install python --version=3.11.5 -y }
+  - refreshenv
   - python -m venv .venv
   - source .venv/Scripts/activate
   - pip install --upgrade pip
-- 
GitLab