expose Deepgram's no_delay for smart formatting (#387) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Types | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
workflow_dispatch: | |
jobs: | |
type-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install mypy | |
run: python -m pip install --upgrade mypy | |
- name: Install all packages | |
run: | | |
pip install ./livekit-agents \ | |
./livekit-plugins/livekit-plugins-openai \ | |
./livekit-plugins/livekit-plugins-deepgram \ | |
./livekit-plugins/livekit-plugins-google \ | |
./livekit-plugins/livekit-plugins-nltk \ | |
./livekit-plugins/livekit-plugins-silero \ | |
./livekit-plugins/livekit-plugins-elevenlabs \ | |
./livekit-plugins/livekit-plugins-cartesia | |
# find . -name setup.py | xargs -n 1 dirname | xargs -n 1 python -m pip install | |
- name: Check Types | |
run : | | |
mypy -p livekit.plugins.openai \ | |
-p livekit.plugins.deepgram \ | |
-p livekit.plugins.google \ | |
-p livekit.plugins.nltk \ | |
-p livekit.plugins.silero \ | |
-p livekit.plugins.elevenlabs \ | |
-p livekit.plugins.cartesia | |
# run: | | |
# for d in $(find . -name setup.py | xargs -n 1 dirname | xargs -n 1 basename); do | |
# echo "Checking types for package: $d" | |
# python -m mypy --non-interactive --install-type -p '$d' | |
# done |