Skip to content

Commit fbc70ae

Browse files
committed
Fix CI: add binary debug test and fix shapely Point serialization in tests
1 parent c8d7c54 commit fbc70ae

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ jobs:
8282
- name: Fix binary permissions
8383
run: chmod +x mlnative/bin/mlnative-render-linux-x64
8484

85+
- name: Test binary directly
86+
run: |
87+
echo "Testing binary directly..."
88+
echo '{"cmd": "init", "width": 256, "height": 256, "style": "https://tiles.openfreemap.org/styles/liberty", "pixel_ratio": 1.0}' | ./mlnative/bin/mlnative-render-linux-x64 || echo "Binary test failed"
89+
8590
- name: Run smoke test
8691
run: |
8792
echo "Testing basic render functionality..."

tests/test_fit_bounds_integration.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ def test_fit_bounds_two_distant_points_with_pixel_ratio(self):
6161
sydney = Point(151.2153, -33.8568) # lon, lat
6262
london = Point(-0.1246, 51.5007) # lon, lat
6363

64-
# Create markers GeoJSON - red circles
65-
markers_geojson = feature_collection([sydney, london])
64+
# Create markers GeoJSON - red circles (use MultiPoint for multiple points)
65+
from shapely import MultiPoint
66+
67+
markers_geojson = feature_collection(MultiPoint([sydney, london]))
6668

6769
# Create style with markers source
6870
style = {

0 commit comments

Comments
 (0)