Skip to content

chore(ci): 更新工作流配置 #3

chore(ci): 更新工作流配置

chore(ci): 更新工作流配置 #3

Workflow file for this run

name: Linting
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: ".python-version"
- name: Install dependencies
run: uv sync
- name: Check code
run: uv run ruff check
- name: Check format
run: uv run ruff format --check