Skip to content

Commit

Permalink
type check GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
keepingitneil committed Mar 19, 2024
1 parent 8bc29be commit e7f991b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/check-types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check Types

on:
pull_request:
branches: [main, master]
push:
branches: [main, master]

jobs:
type-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Download ffi
run: "[[ ${{ inputs.package_name }} = 'livekit.rtc' ]] && pip install requests && python livekit-rtc/rust-sdks/download_ffi.py --output $(python -m site --user-site)/livekit/rtc/resources"

- name: Install mypy
run: pip install --upgrade mypy

- name: Install packages
run: pip install ./livekit-api ./livekit-protocol ./livekit-rtc

- name: Check Types
run: python -m mypy -m livekit.protocol -m livekit.api -m livekit.rtc

0 comments on commit e7f991b

Please sign in to comment.