Skip to content

Commit

Permalink
- Debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpojer committed Jul 1, 2024
1 parent a54b806 commit c78a893
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ jobs:
# Get the list of changed Python files
CHANGED_FILES=$(git diff --name-only --diff-filter=AMR ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep '.py$')
# Generate coverage report for changed files
coverage report --include="$CHANGED_FILES"
# print linst of changed file
echo "Changed Python files:"
echo "$CHANGED_FILES"
# Generate coverage report for changed files
# Fail if the coverage for changed files is below threshold
coverage report --include="$CHANGED_FILES" | grep TOTAL | awk '{if ($4 < 80.0) exit 1}'
shell: bash
Expand Down

0 comments on commit c78a893

Please sign in to comment.