Update CI to use uv with Tsinghua mirror for package installation

This commit is contained in:
Fam Zheng 2025-11-23 17:47:49 +00:00
parent 2301ca7918
commit 87fa3020e4

View File

@ -4,9 +4,6 @@ stages:
- build-docker - build-docker
- deploy - deploy
variables:
GIT_DEPTH: 1
cache: cache:
key: one-key-to-rule-them-all key: one-key-to-rule-them-all
paths: paths:
@ -90,8 +87,10 @@ zy:
tags: tags:
- zy - zy
before_script: before_script:
- pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple - pip install uv
- pip install -r requirements.txt - 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: script:
- make fetch - make fetch
- date - date