mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
👷 修改linting工作流
This commit is contained in:
parent
c011b8ab1c
commit
89cbe5c51a
13
.github/workflows/linting.yml
vendored
13
.github/workflows/linting.yml
vendored
@ -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:
|
||||
|
||||
11
.github/workflows/pyright.yml
vendored
11
.github/workflows/pyright.yml
vendored
@ -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:
|
||||
|
||||
12
.github/workflows/ruff.yml
vendored
12
.github/workflows/ruff.yml
vendored
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user