From d02fcd3588ab3cba5f7faf6b3e46ee520d31ce32 Mon Sep 17 00:00:00 2001 From: Goalina <15861868579@163.com> Date: Fri, 27 Mar 2026 10:04:16 +0800 Subject: [PATCH] [ci] add nginx cache config for Ascend NPU CI environment (#10323) --- .github/workflows/tests_npu.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/tests_npu.yml b/.github/workflows/tests_npu.yml index db19e0269..448272b47 100644 --- a/.github/workflows/tests_npu.yml +++ b/.github/workflows/tests_npu.yml @@ -49,6 +49,12 @@ jobs: - name: Checkout 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 uses: astral-sh/setup-uv@v7 with: