ci: use domestic Python package mirror
CI / test (pull_request) Failing after 1m48s

This commit is contained in:
2026-08-08 23:23:49 +08:00
parent 672c3cf98b
commit 1f800d713f
3 changed files with 19 additions and 4 deletions
+9 -2
View File
@@ -36,7 +36,11 @@ jobs:
- name: Install dependencies
run: |
python3 -m venv .venv-ci
.venv-ci/bin/python -m pip install -r requirements-dev.txt
.venv-ci/bin/python -m pip install \
--index-url https://mirrors.aliyun.com/pypi/simple \
--timeout 120 \
--retries 5 \
-r requirements-dev.txt
- name: Check migrations
working-directory: backend
run: ../.venv-ci/bin/python manage.py makemigrations --check --dry-run
@@ -57,4 +61,7 @@ jobs:
.venv-ci/bin/python backend/manage.py migrate --noinput
.venv-ci/bin/python -m pytest -q
- name: Build image
run: docker build -t hulumath:${{ gitea.sha }} .
run: |
docker build \
--build-arg PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple \
-t hulumath:${{ gitea.sha }} .