This commit is contained in:
Ashwin Bharambe 2025-10-30 11:20:06 -07:00
parent a8c67f075a
commit f18573115b

View file

@ -50,11 +50,20 @@ jobs:
run: npm ci run: npm ci
working-directory: src/llama_stack/ui working-directory: src/llama_stack/ui
- name: Install pre-commit
run: python -m pip install pre-commit
- name: Cache pre-commit
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit - name: Run pre-commit
id: precommit id: precommit
run: | run: |
set +e set +e
pre-commit run --all-files --show-diff-on-failure 2>&1 | tee precommit.log pre-commit run --show-diff-on-failure --color=always --all-files 2>&1 | tee precommit.log
status=${PIPESTATUS[0]} status=${PIPESTATUS[0]}
echo "status=$status" >> $GITHUB_OUTPUT echo "status=$status" >> $GITHUB_OUTPUT
exit 0 exit 0