mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 13:52:43 +08:00
chore - Enforce python test coverage
This commit is contained in:
parent
fccc6f3196
commit
475664e62b
4
.github/workflows/py-tests.yml
vendored
4
.github/workflows/py-tests.yml
vendored
@ -201,3 +201,7 @@ jobs:
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
MERGE_COVERAGE_FILES: true
|
||||
|
||||
- name: Enforce coverage
|
||||
if: ${{ steps.coverage_comment.outputs.new_percent_covered < steps.coverage_comment.outputs.reference_percent_covered }}
|
||||
run: echo "Coverage decreased, which is not allowed. Please add some unit tests for the modified code." && exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user