Skip to content

Commit a0ce53c

Browse files
committed
Add CI check
1 parent 8e6c6c8 commit a0ce53c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/python.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@ jobs:
138138
continue-on-error: true
139139
run: archery docker push ${{ matrix.image }}
140140

141+
- name: Type check with mypy and pyright
142+
run: |-
143+
python -m pip install mypy pyright griffe libcst scipy-stubs pandas-stubs types-python-dateutil types-psutil types-requests griffe libcst types-cffi
144+
pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple pyarrow
145+
cd python
146+
mypy ./pyarrow-stubs ./pyarrow/tests/test_array.py ./pyarrow/tests/test_io.py
147+
pyright ./pyarrow-stubs
148+
python ../dev/update_stub_docstrings.py -f ./python/pyarrow-stubs
149+
141150
macos:
142151
name: ${{ matrix.architecture }} macOS ${{ matrix.macos-version }} Python 3
143152
runs-on: macos-${{ matrix.macos-version }}

0 commit comments

Comments
 (0)