mirror of
https://github.com/hiyouga/LlamaFactory.git
synced 2026-03-29 02:33:09 +00:00
[ci] add nginx cache config for Ascend NPU CI environment (#10323)
This commit is contained in:
6
.github/workflows/tests_npu.yml
vendored
6
.github/workflows/tests_npu.yml
vendored
@@ -49,6 +49,12 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Set nginx-cache for Ascend CI
|
||||||
|
run: |
|
||||||
|
sed -Ei 's@(ports|archive).ubuntu.com@cache-service.nginx-pypi-cache.svc.cluster.local:8081@g' /etc/apt/sources.list
|
||||||
|
pip config set global.index-url http://cache-service.nginx-pypi-cache.svc.cluster.local/pypi/simple
|
||||||
|
pip config set global.trusted-host cache-service.nginx-pypi-cache.svc.cluster.local
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v7
|
uses: astral-sh/setup-uv@v7
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user