👷 修改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
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:
ruff-call:

View File

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

View File

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