💚 修复构建测试

This commit is contained in:
HibiKier 2025-03-14 01:02:27 +08:00
parent eef31c643b
commit 730805b31e
3 changed files with 38 additions and 26 deletions

View File

@ -1,31 +1,6 @@
name: Sequential Lint and Type Check
on:
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:
on: [push, pull_request]
jobs:
ruff-call:

View File

@ -2,6 +2,33 @@ name: Pyright Lint
on:
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:
pyright:

View File

@ -2,6 +2,16 @@ name: Ruff Lint
on:
workflow_call:
push:
branches:
- "*"
pull_request:
paths:
- "zhenxun/**"
- "tests/**"
- ".github/workflows/ruff.yml"
- "pyproject.toml"
- "poetry.lock"
jobs:
ruff: