Skip to content

Commit

Permalink
👷 add codegen lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Jan 24, 2025
1 parent efab2fe commit 709341b
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/pyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
- "**/poetry.lock"

jobs:
pyright:
name: Pyright Lint
lint-githubkit:
name: GitHubKit Lint
runs-on: ubuntu-latest
concurrency:
group: pyright-${{ github.ref }}-${{ matrix.env }}
Expand Down Expand Up @@ -47,3 +47,24 @@ jobs:
uses: jakebailey/pyright-action@v2
with:
pylance-version: latest-release

lint-codegen:
name: Codegen Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Python environment
uses: ./.github/actions/setup-python
with:
env-dir: .

- run: |
echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
shell: bash
- name: Run Pyright
uses: jakebailey/pyright-action@v2
with:
pylance-version: latest-release

0 comments on commit 709341b

Please sign in to comment.