Skip to content

Commit 7fc9c65

Browse files
committed
build: check that substrait-* packages have the same version in CI
1 parent 9879e6e commit 7fc9c65

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Substrait Package Version Checks
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
substrait-package-version-checks:
11+
name: Verify substrait-* Package Versions
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v6
16+
with:
17+
submodules: recursive
18+
19+
- name: Install uv with python
20+
uses: astral-sh/setup-uv@v7
21+
22+
- name: Verify substrait-* versions
23+
run: ./check_substrait_package_versions.sh
24+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
# Check that all substrait-* packages have the same version
5+
6+
protobuf_version=$(uv pip show substrait-protobuf | grep '^Version:' | awk '{print $2}')
7+
antlr_version=$(uv pip show substrait-antlr | grep '^Version:' | awk '{print $2}')
8+
9+
if [ "$protobuf_version" != "$antlr_version" ]; then
10+
echo "error: substrait-protobuf ($protobuf_version) and substrait-antlr ($antlr_version) versions do not match"
11+
exit 1
12+
fi

0 commit comments

Comments
 (0)