Skip to content

CI: run Pyright on examples #3

CI: run Pyright on examples

CI: run Pyright on examples #3

name: Run static analysis tools
on: [push, pull_request]
jobs:
static-analysis:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3"
- name: Double-check Python version
run: |
python --version
- name: Clone Git repository
uses: actions/checkout@v4
- name: Install sounddevice module
run: |
python -m pip install .
- name: Install Pyright
run: |
python -m pip install pyright
- name: Check sounddevice module with Pyright
run: |
# TODO
- name: Install dependencies for examples
run: |
python -m pip install ffmpeg-python matplotlib soundfile
- name: Check examples with Pyright
run: |
python -m pyright examples/*.py