-
Notifications
You must be signed in to change notification settings - Fork 9.9k
86 lines (73 loc) · 2.4 KB
/
Copy pathextension-migration-checks.yml
File metadata and controls
86 lines (73 loc) · 2.4 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Extension Migration Checks
on:
pull_request:
types: [opened, synchronize, reopened, auto_merge_enabled]
paths:
- "BUNDLE_API.md"
- "scripts/migrate/**"
- "src/lfx/src/lfx/extension/**"
- "src/lfx/src/lfx/components/**"
- "src/bundles/**"
- "src/backend/base/langflow/api/**.py"
- ".github/workflows/extension-migration-checks.yml"
jobs:
bare-names:
name: Migration table - bare-name uniqueness
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Run check_bare_names.py
run: python scripts/migrate/check_bare_names.py
append-only:
name: Migration table - append-only
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Run check_migration_append_only.py
run: |
base_ref="origin/${GITHUB_BASE_REF:-main}"
python scripts/migrate/check_migration_append_only.py --base "$base_ref"
bundle-api-changelog:
name: BUNDLE_API.md changelog gate
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Run check_bundle_api_changelog.py
run: |
base_ref="origin/${GITHUB_BASE_REF:-main}"
python scripts/migrate/check_bundle_api_changelog.py --base "$base_ref"
router-trust:
name: Router trust - no install/uninstall under /api/v1/extensions
runs-on: ubuntu-latest
# Trigger on any change to API modules so the guard catches a new
# router file that mounts /extensions, not just edits to the existing
# extensions.py. The guard itself filters down to in-scope files.
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Run check_router_trust.py
run: python scripts/migrate/check_router_trust.py