Skip to content

Commit 29c5a09

Browse files
Change mypy step
1 parent 98198db commit 29c5a09

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ jobs:
2828
2929
- name: Run type checker
3030
run: |
31-
mypy source | tee mypy_output.txt
32-
cat mypy_output.txt # DEBUG
33-
MYPY_WARNINGS=$(grep -c 'note: ' mypy_output.txt)
31+
MYPY_OUTPUT=$(mypy source)
32+
MYPY_WARNINGS=$(echo "$MYPY_OUTPUT" | grep -c 'note: ')
3433
echo "mypy_warnings=${MYPY_WARNINGS}" >> $GITHUB_ENV
3534
continue-on-error: true
3635

0 commit comments

Comments
 (0)