From 87fa3020e4c4ac6f1d4e5d00cbf260b7e7cea87a Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Sun, 23 Nov 2025 17:47:49 +0000 Subject: [PATCH] Update CI to use uv with Tsinghua mirror for package installation --- .gitlab-ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9f292c7..2be80cc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,9 +4,6 @@ stages: - build-docker - deploy -variables: - GIT_DEPTH: 1 - cache: key: one-key-to-rule-them-all paths: @@ -90,8 +87,10 @@ zy: tags: - zy before_script: - - pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple - - pip install -r requirements.txt + - pip install uv + - uv venv --python 3.12 $HOME/venv + - source $HOME/venv/bin/activate + - uv pip install -r requirements.txt --default-index https://pypi.tuna.tsinghua.edu.cn/simple script: - make fetch - date \ No newline at end of file