From 77d08e07e26653120d610cf53d9d48967180bf19 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Wed, 4 Mar 2026 01:05:57 +0800 Subject: [PATCH] chore: remove github actions as it is not needed --- .github/workflows/python-app.yml | 37 -------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml deleted file mode 100644 index e51a055a..00000000 --- a/.github/workflows/python-app.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Python application CI - -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - -jobs: - lint: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Set up Python 3.11 - uses: actions/setup-python@v5 - with: - python-version: "3.11" - cache: "pip" - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install ruff - # 如果需要测试,也可以考虑在这里安装 requirements.txt: pip install -r requirements.txt - - - name: Lint with Ruff - run: | - # 检查代码错误 (如未定义变量, 未使用引入等) - # --output-format=github 可以在 PR 中直接以 annotations 的形式显示错误 - ruff check . --output-format=github - - - name: Check code formatting with Ruff - run: | - # 检查代码格式是否规范 (如果不规范,Actions 会提示报错) - ruff format --check .