Skip to content

Commit bce79e0

Browse files
Add new grep command to parse mypy output
1 parent b0e764c commit bce79e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: .github/workflows/python-ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
2929
- name: Run type checker
3030
run: |
31-
mypy source
31+
mypy source | tee mypy_output.txt
32+
MYPY_WARNINGS=$(grep -oP '\b\d+(?= errors?)|\bno issues found\b' mypy_output.txt | tail -n1 | sed 's/\bno issues found\b/0/')
33+
echo "mypy_warnings=${MYPY_WARNINGS}" >> $GITHUB_ENV
3234
continue-on-error: true
3335

3436
- name: Run static code analysis

0 commit comments

Comments
 (0)