Files
oqyude 60ac9252ec D13: CI — pytest + ruff (.github/workflows/ci.yml)
- Новый workflow: setup-python 3.11 + `pip install -e ".[dev]"`
- Гейты: `ruff check .`, `ruff format --check .`, `pytest -q`
- Триггеры: push в dev/main/master/agent/**, pull_request, workflow_dispatch
- Кэш pip по pyproject.toml
2026-10-25 05:17:32 +03:00

41 lines
758 B
YAML

name: CI
on:
push:
branches:
- dev
- main
- master
- "agent/**"
pull_request:
workflow_dispatch:
jobs:
test:
name: pytest + ruff
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install project and dev tools
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: ruff check
run: ruff check .
- name: ruff format
run: ruff format --check .
- name: pytest
run: pytest -q