Skip to content

Commit 026ceea

Browse files
committed
update verification step
1 parent 8db731f commit 026ceea

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,43 @@ jobs:
235235
run: |
236236
python -m pip install build setuptools wheel
237237
mkdir -p /tmp/sdist_test
238-
tar -xvf dist/*.tar.gz -C /tmp/sdist_test
238+
239+
# List all files in dist directory
240+
echo "Files in dist directory:"
241+
ls -la dist/
242+
243+
# Extract only the basemap sdist
244+
BASEMAP_SDIST=$(ls dist/basemap-*.tar.gz 2>/dev/null || echo "")
245+
246+
if [ -z "$BASEMAP_SDIST" ]; then
247+
echo "Basemap sdist not found with pattern 'basemap-*.tar.gz', trying alternative patterns..."
248+
BASEMAP_SDIST=$(ls dist/*basemap*.tar.gz 2>/dev/null | head -1 || echo "")
249+
fi
250+
251+
if [ -z "$BASEMAP_SDIST" ]; then
252+
echo "ERROR: Could not find any basemap sdist"
253+
exit 1
254+
fi
255+
256+
echo "Using sdist: $BASEMAP_SDIST"
257+
258+
# Extract just the one sdist file
259+
tar -xvf "$BASEMAP_SDIST" -C /tmp/sdist_test
260+
261+
# Enter extracted directory
239262
cd /tmp/sdist_test/*/
263+
264+
# Install and build
240265
python -m pip install -e .
241266
python -m build --wheel
242-
ls -la dist/*.whl
267+
268+
# Check for built wheel
269+
if [ -d "dist" ]; then
270+
ls -la dist/*.whl || echo "No wheels found in dist directory"
271+
else
272+
echo "No dist directory created"
273+
exit 1
274+
fi
243275
244276
upload:
245277
name: Upload packages

0 commit comments

Comments
 (0)