Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
OS_NAME: ${{ matrix.os }}
UV_NO_SYNC: 1

steps:
- name: Checkout
Expand Down Expand Up @@ -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' }}"
2 changes: 2 additions & 0 deletions .github/workflows/tests_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 1 addition & 17 deletions .github/workflows/tests_npu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' }}"