Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

on:
push:
branches: [main]
pull_request:

env:
UV_LOCKED: true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To ensure uv.lock is up to date.


jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4

- name: Prepare uv and Python
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}

- name: Sync environment
run: |
uv sync

- name: Build package
run: |
uv build

- name: Verify build artifacts
run: |
ls -la dist/
44 changes: 44 additions & 0 deletions .github/workflows/demos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Run Demos

on:
push:
branches: [main]
pull_request:

env:
UV_LOCKED: true

jobs:
test-demos:
runs-on: ubuntu-latest
strategy:
matrix:
demo: ["simple", "boll"]

steps:
- uses: actions/checkout@v4

- name: Prepare uv and Python
uses: astral-sh/setup-uv@v5

# TODO: use docker image with diffrent versions of RisingWave
- name: Install RisingWave
run: |
mkdir -p /opt/risingwave
cd /opt/risingwave
curl -L https://risingwave.com/sh | sh
echo "/opt/risingwave" >> $GITHUB_PATH

- name: Run demo (smoke test)
run: |
# Run the demo with a timeout to prevent it from running indefinitely
timeout 30s uv run examples/demo.py ${{ matrix.demo }} || code=$?
if [ $code -eq 124 ]; then
# If the command timed out (code 124), that's expected since the demo runs continuously
echo "Demo ran successfully for 30 seconds"
exit 0
else
# Any other exit code indicates a failure
echo "Demo exited with code $code"
exit $code
fi
1 change: 0 additions & 1 deletion examples/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def demo_simple():
# Init logging
logging.basicConfig(filename="risingwave_py.log", level=logging.INFO)

# rw = RisingWave()
rw = RisingWave()

# Create a schema and a table for demo
Expand Down