# Forgejo / Gitea Actions — проверка перед деплоем (совместимо с синтаксисом GitHub Actions). name: CI on: push: branches: [main] tags: - "v*" pull_request: branches: [main] concurrency: group: ci-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: test: runs-on: ubuntu-latest timeout-minutes: 15 steps: - name: Checkout uses: actions/checkout@v4 - name: Python 3.12 uses: actions/setup-python@v5 with: python-version: "3.12" cache: pip cache-dependency-path: pyproject.toml - name: Pytest run: | set -euo pipefail python -m pip install -U pip python -m pip install -e ".[dev]" python -m pytest tests/ -q --tb=short