-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (46 loc) · 1.46 KB
/
Copy pathpre-release.yml
File metadata and controls
58 lines (46 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Pre-release Validation
#
# Полная проверка перед релизом: pre-commit, тесты, линтинг, e2e.
# Запускается вручную (workflow_dispatch) ПЕРЕД созданием тега.
# Release = решение человека, не автоматический trigger.
#
# SSOT: standard-release.md, standard-testing.md
name: Pre-release Validation
on:
workflow_dispatch:
inputs:
version:
description: 'Version to validate (e.g., v1.0.0)'
required: true
type: string
permissions:
contents: read
jobs:
validate:
name: Pre-release validation
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Cache pre-commit
uses: actions/cache@v6
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Pre-commit checks
run: |
pip install pre-commit
pre-commit run --all-files
- name: Unit & Integration tests
run: make test
- name: Lint
run: make lint
- name: E2E tests
run: make test-e2e
- name: Pre-release validation script
run: python .github/.instructions/.scripts/validate-pre-release.py --version ${{ inputs.version }} --skip-tests