perf: use Tsinghua PyPI mirror for faster pip installs
This commit is contained in:
@@ -54,9 +54,10 @@ jobs:
|
|||||||
echo "Installing fresh dependencies..."
|
echo "Installing fresh dependencies..."
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pip install --cache-dir=$PIP_CACHE_DIR -r requirements.txt
|
# Use Tsinghua PyPI mirror for faster downloads in China
|
||||||
pip install --cache-dir=$PIP_CACHE_DIR -r requirements-dev.txt
|
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 pytest-timeout
|
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
|
# Save to cache
|
||||||
echo "Saving venv to cache $CACHE_KEY..."
|
echo "Saving venv to cache $CACHE_KEY..."
|
||||||
cp -a venv $CACHE_DIR/
|
cp -a venv $CACHE_DIR/
|
||||||
|
|||||||
Reference in New Issue
Block a user