👷 修改linting工作流

This commit is contained in:
HibiKier 2025-03-14 00:37:44 +08:00
parent c011b8ab1c
commit 89cbe5c51a
3 changed files with 14 additions and 22 deletions

View File

@ -1,6 +1,17 @@
name: Sequential Lint and Type Check name: Sequential Lint and Type Check
on: [push, pull_request] on:
push:
branches:
- "*"
pull_request:
paths:
- "zhenxun/**"
- "tests/**"
- ".github/workflows/ruff.yml"
- ".github/workflows/pyright.yml"
- "pyproject.toml"
- "poetry.lock"
jobs: jobs:
ruff-call: ruff-call:

View File

@ -1,16 +1,7 @@
name: Pyright Lint name: Pyright Lint
on: on:
push: workflow_call:
branches:
- "*"
pull_request:
paths:
- "zhenxun/**"
- "tests/**"
- "pyproject.toml"
- "poetry.lock"
- ".github/workflows/pyright.yml"
jobs: jobs:
pyright: pyright:

View File

@ -1,17 +1,7 @@
name: Ruff Lint name: Ruff Lint
on: on:
workflow_call: # 允许此工作流作为可重用工作流被调用 workflow_call:
push:
branches:
- "*"
pull_request:
paths:
- "zhenxun/**"
- "tests/**"
- ".github/workflows/ruff.yml"
- "pyproject.toml"
- "poetry.lock"
jobs: jobs:
ruff: ruff: