-
-
Notifications
You must be signed in to change notification settings - Fork 1
99 lines (82 loc) · 2.77 KB
/
Copy pathschema-compat.yml
File metadata and controls
99 lines (82 loc) · 2.77 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
87
88
89
90
91
92
93
94
95
96
97
98
99
# workflows/schema-compat.yml
#
# Schema Compatibility Check
# Validates that the paradedb API wrapper stays in sync with the
# ParadeDB SQL schema and that integration tests pass against the new version.
# Triggered automatically on each paradedb release (via repository_dispatch)
# or manually via workflow_dispatch.
name: Schema Compatibility Check
run-name: "Schema Compatibility Check — ParadeDB v${{ inputs.version || github.event.client_payload.version }}"
on:
repository_dispatch:
types: [paradedb-release]
workflow_dispatch:
inputs:
version:
description: "ParadeDB version to check against"
required: true
concurrency:
group: schema-compat-${{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
PARADEDB_VERSION: ${{ inputs.version || github.event.client_payload.version }}
jobs:
schema-compat:
name: Check Schema Compatibility
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Run Schema Compatibility Check
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: uv run --with json5 scripts/check_schema_compat.py ${{ env.PARADEDB_VERSION }}
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Restore
run: dotnet restore build.slnf
- name: Build
run: dotnet build build.slnf --configuration Release --framework net10.0 --no-restore
- name: Test
run: |
dotnet test \
--no-build \
--configuration Release \
--framework net10.0 \
--results-directory TestResults/net10.0 \
--coverlet \
--coverlet-output-format cobertura
notify:
name: Notify on Failure
runs-on: ubuntu-latest
needs: [schema-compat, tests]
if: failure()
steps:
- name: Create GitHub Issue
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh issue create \
--repo ${{ github.repository }} \
--title "Schema compat failure for ParadeDB v${{ env.PARADEDB_VERSION }}" \
--body "$(cat <<EOF
The schema compatibility check or tests failed against ParadeDB **v${{ env.PARADEDB_VERSION }}**.
**Workflow run:** ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Please investigate and update efcore-paradedb as needed.
EOF
)" \
--label bug