mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2025-09-04 10:20:45 +00:00
33 lines
703 B
YAML
33 lines
703 B
YAML
name: Pyright Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
paths:
|
|
- "nonebot_plugin_llmchat/**"
|
|
- ".github/workflows/pyright.yml"
|
|
- "pyproject.toml"
|
|
- "poetry.lock"
|
|
|
|
jobs:
|
|
pyright:
|
|
name: Pyright Lint
|
|
runs-on: ubuntu-latest
|
|
concurrency:
|
|
group: lint-${{ github.ref }}-${{ matrix.env }}
|
|
cancel-in-progress: true
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Python environment
|
|
uses: ./.github/actions/setup-python
|
|
|
|
- run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
|
|
|
|
- name: Run Pyright
|
|
uses: jakebailey/pyright-action@v2
|
|
with:
|
|
pylance-version: latest-release
|