Skip to content

Commit 833909b

Browse files
committed
Type check errors are not blocking now in all tests workflow.
1 parent e672383 commit 833909b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/all_tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- uses: ./.github/actions/setup-python
13-
- name: Type check
14-
run: python3 -m pip install mypy && mypy --check-untyped-defs src/__main__.py src/downloader
13+
- run: |
14+
set -euo pipefail
15+
python3 -m pip install mypy
16+
mypy --check-untyped-defs src/__main__.py src/downloader > mypy_output.txt 2>&1 || true
17+
TYPE_ERRORS=$(grep -c "error:" mypy_output.txt || echo "0")
18+
cat mypy_output.txt
19+
echo "**Type Check:** Found $TYPE_ERRORS type errors" >> $GITHUB_STEP_SUMMARY
1520
1621
unit-tests:
1722
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)