Skip to content

Commit 52d5efa

Browse files
committed
build(mypy): run mypy in CI workflow
1 parent 65fa7ff commit 52d5efa

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/_test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,25 @@ jobs:
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232
cache: 'pip'
33+
- name: Setup venv
34+
run: |
35+
python -m venv .venv
3336
- uses: actions/cache@v4
3437
with:
3538
path: .venv
3639
key: ${{ runner.os }}-pythonenv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
3740
restore-keys: |
3841
${{ runner.os }}-pythonenv-${{ matrix.python-version }}-
39-
- name: Python build & test
42+
- name: Install toolchains
4043
run: |
41-
python -m venv .venv
4244
source .venv/bin/activate
43-
pip install maturin pytest
45+
pip install maturin pytest mypy
46+
- name: Build
47+
run: |
4448
maturin develop
49+
- name: Type check
50+
run: |
51+
mypy python
52+
- name: Test
53+
run: |
4554
pytest python/cocoindex/tests

0 commit comments

Comments
 (0)