mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
💚 修复构建测试
This commit is contained in:
parent
eef31c643b
commit
730805b31e
27
.github/workflows/linting.yml
vendored
27
.github/workflows/linting.yml
vendored
@ -1,31 +1,6 @@
|
|||||||
name: Sequential Lint and Type Check
|
name: Sequential Lint and Type Check
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "*"
|
|
||||||
paths:
|
|
||||||
- "zhenxun/**"
|
|
||||||
- "tests/**"
|
|
||||||
- "pyproject.toml"
|
|
||||||
- "poetry.lock"
|
|
||||||
- ".github/workflows/pyright.yml"
|
|
||||||
- ".github/workflows/ruff.yml"
|
|
||||||
- ".github/workflows/linting.yml"
|
|
||||||
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- "*"
|
|
||||||
paths:
|
|
||||||
- "zhenxun/**"
|
|
||||||
- "tests/**"
|
|
||||||
- "pyproject.toml"
|
|
||||||
- "poetry.lock"
|
|
||||||
- ".github/workflows/pyright.yml"
|
|
||||||
- ".github/workflows/ruff.yml"
|
|
||||||
- ".github/workflows/linting.yml"
|
|
||||||
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ruff-call:
|
ruff-call:
|
||||||
|
|||||||
27
.github/workflows/pyright.yml
vendored
27
.github/workflows/pyright.yml
vendored
@ -2,6 +2,33 @@ name: Pyright Lint
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "*"
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "zhenxun/**"
|
||||||
|
- "tests/**"
|
||||||
|
- ".github/workflows/pyright.yml"
|
||||||
|
- "pyproject.toml"
|
||||||
|
- "poetry.lock"
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
python-version:
|
||||||
|
description: "Python version"
|
||||||
|
required: false
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- "all"
|
||||||
|
- "3.10"
|
||||||
|
- "3.11"
|
||||||
|
- "3.12"
|
||||||
|
default: "all"
|
||||||
|
debug-mode:
|
||||||
|
description: "enable debug mode"
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pyright:
|
pyright:
|
||||||
|
|||||||
10
.github/workflows/ruff.yml
vendored
10
.github/workflows/ruff.yml
vendored
@ -2,6 +2,16 @@ 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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user