mirror of
https://github.com/AstrBotDevs/AstrBot.git
synced 2026-11-20 12:39:17 +08:00
* CI: Simplify smoke test * follow-up for standardizing uv setup and skip redundant syncs * CI: Use uv for project sync workflows Reference actions by version tag and reduce the sync timeout from 120 to 10 minutes. Drop references to the deleted delivery test and remove workflow security assertions.
25 lines
467 B
YAML
25 lines
467 B
YAML
name: Code Format Check
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
format-check:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@v10.3.3
|
|
|
|
- name: Check code formatting with ruff
|
|
run: uvx ruff@0.15.22 format --check .
|
|
|
|
- name: Check code style with ruff
|
|
run: uvx ruff@0.15.22 check .
|