From 766d5ae6ad34a10981d297ecfce6330868fe2d92 Mon Sep 17 00:00:00 2001 From: Yaowei Zheng Date: Fri, 9 Jan 2026 14:48:16 +0800 Subject: [PATCH] [ci] fix workflow (#9738) --- .github/workflows/tests.yml | 8 +------- .github/workflows/tests_cuda.yml | 2 ++ .github/workflows/tests_npu.yml | 18 +----------------- 3 files changed, 4 insertions(+), 24 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3d8f34dcd..678cd5467 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,6 +54,7 @@ jobs: env: HF_TOKEN: ${{ secrets.HF_TOKEN }} OS_NAME: ${{ matrix.os }} + UV_NO_SYNC: 1 steps: - name: Checkout @@ -88,25 +89,18 @@ jobs: - name: Check quality run: | make style && make quality - env: - UV_NO_SYNC: 1 - name: Check license run: | make license - env: - UV_NO_SYNC: 1 - name: Check build run: | make build - env: - UV_NO_SYNC: 1 - name: Test with pytest run: | make test env: - UV_NO_SYNC: 1 HF_HOME: ${{ runner.temp }}/huggingface HF_HUB_OFFLINE: "${{ steps.hf-hub-cache.outputs.cache-hit == 'true' && '1' || '0' }}" diff --git a/.github/workflows/tests_cuda.yml b/.github/workflows/tests_cuda.yml index 7b2bf78ba..46e0388ae 100644 --- a/.github/workflows/tests_cuda.yml +++ b/.github/workflows/tests_cuda.yml @@ -38,6 +38,8 @@ jobs: env: HF_HOME: "${{ github.workspace }}/../.runner_cache/huggingface" UV_CACHE_DIR: "${{ github.workspace }}/../.runner_cache/uv" + HF_TOKEN: ${{ secrets.HF_TOKEN }} + OS_NAME: ${{ matrix.os }} UV_NO_SYNC: 1 steps: diff --git a/.github/workflows/tests_npu.yml b/.github/workflows/tests_npu.yml index da455babd..a45f37fda 100644 --- a/.github/workflows/tests_npu.yml +++ b/.github/workflows/tests_npu.yml @@ -43,6 +43,7 @@ jobs: HF_ENDPOINT: https://hf-mirror.com HF_TOKEN: ${{ secrets.HF_TOKEN }} OS_NAME: ${{ matrix.os }} + UV_NO_SYNC: 1 steps: - name: Checkout @@ -69,35 +70,18 @@ jobs: curl -fsSL https://deb.nodesource.com/setup_20.x | bash - apt-get install -y nodejs - - name: Cache files - id: hf-hub-cache - uses: actions/cache@v4 - with: - path: ${{ runner.temp }}/huggingface - key: huggingface-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('tests/version.txt') }} - - name: Check quality run: | make style && make quality - env: - UV_NO_SYNC: 1 - name: Check license run: | make license - env: - UV_NO_SYNC: 1 - name: Check build run: | make build - env: - UV_NO_SYNC: 1 - name: Test with pytest run: | make test - env: - UV_NO_SYNC: 1 - HF_HOME: /root/.cache/huggingface - HF_HUB_OFFLINE: "${{ steps.hf-hub-cache.outputs.cache-hit == 'true' && '1' || '0' }}"