Skip to content

Commit 6708724

Browse files
Improve type checking strategy
1 parent 1d048d5 commit 6708724

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci-build.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,19 @@ jobs:
4444
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4545
with:
4646
python-version: ${{ env.LATEST_SUPPORTED_PY }}
47-
- name: Run mypy verification
48-
run: ./scripts/run_mypy.sh
47+
- name: Install synchronous dependencies
48+
run: |
49+
pip install -U pip
50+
pip install -U .
51+
pip install -r requirements/tools.txt
52+
- name: Type check synchronous modules
53+
run: mypy --config-file pyproject.toml --exclude "async_|/adapter/"
54+
- name: Install async and adapter dependencies
55+
run: |
56+
pip install -r requirements/async.txt
57+
pip install -r requirements/adapter.txt
58+
- name: Type check all modules
59+
run: mypy --config-file pyproject.toml
4960

5061
unittest:
5162
name: Unit tests

0 commit comments

Comments
 (0)