Update CI to use uv with Tsinghua mirror for package installation
This commit is contained in:
parent
2301ca7918
commit
87fa3020e4
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user