mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 22:42:25 +00:00
Precommit
This commit is contained in:
parent
6daf23a22b
commit
901cfcd647
1 changed files with 1 additions and 1 deletions
2
.github/workflows/unit-tests.yml
vendored
2
.github/workflows/unit-tests.yml
vendored
|
|
@ -53,7 +53,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
coverage=$(uv run --python ${{ matrix.python }} --group unit coverage report -m | tail -1 | tail -c 4 | head -c 2)
|
coverage=$(uv run --python ${{ matrix.python }} --group unit coverage report -m | tail -1 | tail -c 4 | head -c 2)
|
||||||
echo "Total coverage: ${coverage}%"
|
echo "Total coverage: ${coverage}%"
|
||||||
|
|
||||||
# Check if coverage is below the threshold
|
# Check if coverage is below the threshold
|
||||||
if (( ${coverage} < 40 )); then
|
if (( ${coverage} < 40 )); then
|
||||||
echo "Coverage failed at ${coverage}%, expected at least 40%"
|
echo "Coverage failed at ${coverage}%, expected at least 40%"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue