Skip to content

Commit 9d5bc48

Browse files
committed
Add CI check
1 parent 14d1570 commit 9d5bc48

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/python.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,16 @@ 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+
cd ..
149+
python ./dev/update_stub_docstrings.py -f ./python/pyarrow-stubs
150+
141151
macos:
142152
name: ${{ matrix.architecture }} macOS ${{ matrix.macos-version }} Python 3
143153
runs-on: macos-${{ matrix.macos-version }}

0 commit comments

Comments
 (0)