This commit is contained in:
hiyouga
2025-12-27 08:15:02 +08:00
parent e374b615f2
commit f69c8efd27
2 changed files with 10 additions and 10 deletions

View File

@@ -90,19 +90,19 @@ jobs:
- name: Check quality - name: Check quality
run: | run: |
make style && make quality UV_NO_SYNC=1 make style && make quality
- name: Check license - name: Check license
run: | run: |
make license UV_NO_SYNC=1 make license
- name: Check build - name: Check build
run: | run: |
make build UV_NO_SYNC=1 make build
- name: Test with pytest - name: Test with pytest
run: | run: |
make test UV_NO_SYNC=1 make test
env: env:
HF_HOME: ${{ runner.temp }}/huggingface HF_HOME: ${{ runner.temp }}/huggingface
HF_HUB_OFFLINE: "${{ steps.hf-hub-cache.outputs.cache-hit == 'true' && '1' || '0' }}" HF_HUB_OFFLINE: "${{ steps.hf-hub-cache.outputs.cache-hit == 'true' && '1' || '0' }}"

View File

@@ -55,8 +55,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
uv venv uv venv
uv pip install --system torch-npu==${{matrix.pytorch_npu}} uv pip install torch-npu==${{matrix.pytorch_npu}}
uv pip install --system -e ".[dev]" uv pip install -e ".[dev]"
- name: Install node - name: Install node
run: | run: |
@@ -74,19 +74,19 @@ jobs:
- name: Check quality - name: Check quality
run: | run: |
make style && make quality UV_NO_SYNC=1 make style && make quality
- name: Check license - name: Check license
run: | run: |
make license UV_NO_SYNC=1 make license
- name: Check build - name: Check build
run: | run: |
make build UV_NO_SYNC=1 make build
- name: Test with pytest - name: Test with pytest
run: | run: |
make test UV_NO_SYNC=1 make test
env: env:
HF_HOME: /root/.cache/huggingface HF_HOME: /root/.cache/huggingface
HF_HUB_OFFLINE: "${{ steps.hf-hub-cache.outputs.cache-hit == 'true' && '1' || '0' }}" HF_HUB_OFFLINE: "${{ steps.hf-hub-cache.outputs.cache-hit == 'true' && '1' || '0' }}"