mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-28 11:40:25 +00:00
Co-authored-by: Gittensor Contributor <contributor@gittensor.io> Co-authored-by: Tao Sun <168447269+fengju0213@users.noreply.github.com> Co-authored-by: bytecii <994513625@qq.com>
36 lines
675 B
YAML
36 lines
675 B
YAML
name: Pre-commit
|
|
|
|
"on":
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: backend
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v4
|
|
|
|
- name: Install dev dependencies
|
|
run: uv sync --group dev
|
|
|
|
- name: Run pre-commit
|
|
run: |
|
|
uv run pre-commit run --files $(git ls-files .)
|
|
env:
|
|
SKIP: no-commit-to-branch
|