From 17c1fb305704a08a08eec8af36dfc3328bdce95c Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Mon, 6 Apr 2026 22:53:22 +0800 Subject: [PATCH] perf: use Tsinghua PyPI mirror for faster pip installs --- .gitea/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 959709c..377ec59 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -54,9 +54,10 @@ jobs: echo "Installing fresh dependencies..." python3 -m venv venv . venv/bin/activate - pip install --cache-dir=$PIP_CACHE_DIR -r requirements.txt - pip install --cache-dir=$PIP_CACHE_DIR -r requirements-dev.txt - pip install --cache-dir=$PIP_CACHE_DIR pytest-timeout + # Use Tsinghua PyPI mirror for faster downloads in China + pip install --cache-dir=$PIP_CACHE_DIR -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt + pip install --cache-dir=$PIP_CACHE_DIR -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements-dev.txt + pip install --cache-dir=$PIP_CACHE_DIR -i https://pypi.tuna.tsinghua.edu.cn/simple pytest-timeout # Save to cache echo "Saving venv to cache $CACHE_KEY..." cp -a venv $CACHE_DIR/