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/