From 60ac9252ec99a0e2b5742da091c842391de21284 Mon Sep 17 00:00:00 2001 From: oqyude Date: Sun, 25 Oct 2026 05:14:26 +0300 Subject: [PATCH] =?UTF-8?q?D13:=20CI=20=E2=80=94=20pytest=20+=20ruff=20(.g?= =?UTF-8?q?ithub/workflows/ci.yml)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Новый 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 --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ab3457f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +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