From b5ee01d193fa90008aa042085a618d1d541937c5 Mon Sep 17 00:00:00 2001 From: 0x24a Date: Mon, 7 Oct 2024 14:14:31 +0800 Subject: [PATCH] Add pyright check to the type check --- .github/workflows/pyright-check.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pyright-check.yml diff --git a/.github/workflows/pyright-check.yml b/.github/workflows/pyright-check.yml new file mode 100644 index 0000000..f1f760b --- /dev/null +++ b/.github/workflows/pyright-check.yml @@ -0,0 +1,24 @@ +name: Pyright Type Check + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + type-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pyright + - name: Run pyright + run: pyright . \ No newline at end of file