Skip to content

Commit 6795476

Browse files
committed
CI: run Pyright on examples
1 parent 5f8684c commit 6795476

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run static analysis tools
2+
on: [push, pull_request]
3+
jobs:
4+
static-analysis:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Set up Python
8+
uses: actions/setup-python@v5
9+
with:
10+
python-version: "3"
11+
- name: Double-check Python version
12+
run: |
13+
python --version
14+
- name: Clone Git repository
15+
uses: actions/checkout@v4
16+
- name: Install sounddevice module
17+
run: |
18+
python -m pip install .
19+
- name: Install Pyright
20+
run: |
21+
python -m pip install pyright
22+
- name: Check sounddevice module with Pyright
23+
run: |
24+
# TODO
25+
- name: Install dependencies for examples
26+
run: |
27+
python -m pip install ffmpeg-python matplotlib soundfile
28+
- name: Check examples with Pyright
29+
run: |
30+
python -m pyright examples/*.py

0 commit comments

Comments
 (0)