Skip to content

fix: команды /start+/help, сохранение роста, AI-консультант #131

fix: команды /start+/help, сохранение роста, AI-консультант

fix: команды /start+/help, сохранение роста, AI-консультант #131

Workflow file for this run

name: Tests
on:
pull_request:
branches: [main]
push:
branches: [main]
# Cancel previous runs of the same PR/branch when a new commit lands.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pytest:
name: pytest (unit)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run pytest
# Excluded tests are pre-existing issues unrelated to onboarding pipeline.
# See docs/ai_context/AI_CHANGELOG.md or open a follow-up issue when
# touching the relevant area.
#
# tests/integration/ — onboarding_wizard flakes (aiogram state)
# tests/test_nutrition_parsing.py — requires live OpenAI API (cost+flake)
# Бывшие deselect'ы убраны 11.06.2026: log_meal_text_* замоканы,
# test_user_has_cohort_field давно починен. Dummy-ключи ставит
# tests/conftest.py (autouse) — env-блок здесь больше не обязателен.
run: |
pytest tests/ -v \
--ignore=tests/integration \
--ignore=tests/test_nutrition_parsing.py
ruff:
name: ruff (lint)
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install ruff
run: pip install ruff
- name: Lint
# Rules and excludes come from pyproject.toml [tool.ruff].
run: ruff check .
- name: Format check
run: ruff format --check .