ci: CI на тегах v*, проверка DEPLOY_*, документация деплоя и тегов
Some checks failed
CI / test (push) Has been cancelled

Made-with: Cursor
This commit is contained in:
Alexandr
2026-04-03 14:26:39 +03:00
parent 5788f995b9
commit 9f2aa2d2b5
5 changed files with 51 additions and 4 deletions

View File

@ -1,14 +1,22 @@
# Forgejo / Gitea Actions — проверка перед деплоем
# 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
@ -17,8 +25,12 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml
- name: Pytest
run: |
pip install -e ".[dev]"
pytest -q
set -euo pipefail
python -m pip install -U pip
python -m pip install -e ".[dev]"
python -m pytest tests/ -q --tb=short