Skip to content

Commit b6b5d48

Browse files
committed
add type check workflow
1 parent 8ddd572 commit b6b5d48

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,23 @@ jobs:
5454
run: pip install --editable . --verbose
5555
- name: Run tests
5656
run: python -m pytest
57+
58+
type-check:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v4
62+
with:
63+
submodules: true
64+
- uses: actions/setup-python@v5
65+
with:
66+
python-version: "3.9"
67+
- name: Install requirements
68+
run: pip install numpy pytest pyright
69+
- name: "Workaround: Generate _soundfile.py explicitly"
70+
run: |
71+
pip install cffi>=1.0
72+
python soundfile_build.py
73+
- name: Install editable package
74+
run: pip install --editable . --verbose
75+
- name: Run tests
76+
run: python -m pyright soundfile.py

0 commit comments

Comments
 (0)