Skip to content

Commit 8bbbc57

Browse files
committed
fix: Add platform-specific setup and bash shell to test-python-examples
- Add conditional Java setup for macOS/Windows (Docker not available) - Add conditional Docker Buildx setup for Linux only - Force bash shell on all run steps (fixes PowerShell syntax errors on Windows) - Matches setup pattern from test-python-bindings.yml
1 parent 1e14e58 commit 8bbbc57

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/test-python-examples.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,19 @@ jobs:
3636
- name: Checkout code
3737
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3838

39-
- name: Set up Docker Buildx
39+
- name: Set up Java (for native builds on macOS/Windows)
40+
if: matrix.platform != 'linux/amd64' && matrix.platform != 'linux/arm64'
41+
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
42+
with:
43+
distribution: 'temurin'
44+
java-version: '21'
45+
46+
- name: Set up Docker Buildx (Linux only)
47+
if: matrix.platform == 'linux/amd64' || matrix.platform == 'linux/arm64'
4048
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
4149

4250
- name: Build arcadedb-embedded (${{ matrix.platform }})
51+
shell: bash
4352
run: |
4453
cd bindings/python
4554
echo "🔨 Building arcadedb-embedded for ${{ matrix.platform }}..."
@@ -53,17 +62,20 @@ jobs:
5362
# Note: Java is NOT required - arcadedb-embedded has bundled JRE!
5463

5564
- name: Install ArcadeDB Python bindings
65+
shell: bash
5666
run: |
5767
cd bindings/python
5868
pip install dist/*embed*.whl
5969
6070
- name: Install example dependencies
71+
shell: bash
6172
run: |
6273
# Install dependencies needed by examples
6374
pip install numpy requests
6475
6576
- name: Run all examples
6677
id: run_examples
78+
shell: bash
6779
env:
6880
# Increase JVM heap for large CSV imports (example 04)
6981
ARCADEDB_JVM_MAX_HEAP: "8g"
@@ -187,6 +199,7 @@ jobs:
187199
188200
- name: Generate test summary
189201
if: always()
202+
shell: bash
190203
run: |
191204
cd bindings/python/examples
192205
@@ -260,6 +273,7 @@ jobs:
260273
if: always()
261274
steps:
262275
- name: Check test results
276+
shell: bash
263277
run: |
264278
echo "## 🎯 Overall Examples Test Summary" >> $GITHUB_STEP_SUMMARY
265279
echo "" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)