Feature/pyright check #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: Ruff Lint | |
on: | |
workflow_call: # 允许此工作流作为可重用工作流被调用 | |
push: | |
branches: | |
- "*" | |
pull_request: | |
paths: | |
- "zhenxun/**" | |
- "tests/**" | |
- ".github/workflows/ruff.yml" | |
- "pyproject.toml" | |
- "poetry.lock" | |
jobs: | |
ruff: | |
name: Ruff Lint | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ruff-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Ruff | |
uses: astral-sh/ruff-action@v3 | |
- name: Run Ruff Check | |
run: ruff check | |
- name: Run Ruff Format | |
run: ruff format |