fix: 更新工作流以使用自托管环境并优化冲突检查和Ruff检查步骤

This commit is contained in:
墨梓柒
2025-07-13 18:06:03 +08:00
parent c39e4b7113
commit ec80b87f6a
2 changed files with 34 additions and 11 deletions

View File

@@ -1,9 +1,21 @@
name: Ruff
name: Ruff PR Check
on: [ pull_request ]
jobs:
ruff:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
with:
fetch-depth: 0
- name: Install Ruff and Run Checks
uses: astral-sh/ruff-action@v3
with:
args: "--version"
version: "latest"
- name: Run Ruff Check (No Fix)
run: ruff check --output-format=github
shell: pwsh
- name: Run Ruff Format Check
run: ruff format --check --diff
shell: pwsh