Skip to content

Commit 3400a1d

Browse files
committed
feat: add archiving and extraction of shared example assets in CI workflow
1 parent 08ab279 commit 3400a1d

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,16 @@ jobs:
285285
path: bindings/python/src/arcadedb_embedded/jars/*.jar
286286
retention-days: 1
287287

288+
- name: Archive shared example assets
289+
shell: bash
290+
run: |
291+
tar -czf /tmp/example-shared-assets.tar.gz -C bindings/python/examples data
292+
288293
- name: Upload shared example assets artifact
289294
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
290295
with:
291296
name: example-shared-assets
292-
path: bindings/python/examples/data/
297+
path: /tmp/example-shared-assets.tar.gz
293298
retention-days: 1
294299

295300
# Second job: Test examples on each platform
@@ -340,7 +345,13 @@ jobs:
340345
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
341346
with:
342347
name: example-shared-assets
343-
path: bindings/python/examples
348+
path: ${{ runner.temp }}/example-shared-assets
349+
350+
- name: Extract shared example assets
351+
shell: bash
352+
run: |
353+
mkdir -p bindings/python/examples
354+
tar -xzf "$RUNNER_TEMP/example-shared-assets/example-shared-assets.tar.gz" -C bindings/python/examples
344355
345356
- name: Set up Java (for native builds on macOS/Windows)
346357
if: matrix.platform != 'linux/amd64' && matrix.platform != 'linux/arm64'
@@ -416,6 +427,10 @@ jobs:
416427
uv pip install --system numpy
417428
fi
418429
430+
if [ '${{ needs.prepare-assets.outputs.needs_stackoverflow }}' = 'true' ]; then
431+
uv pip install --system lxml
432+
fi
433+
419434
if [ '${{ needs.prepare-assets.outputs.needs_runtime_models }}' = 'true' ]; then
420435
uv pip install --system torch --index-url https://download.pytorch.org/whl/cpu
421436
uv pip install --system sentence-transformers

0 commit comments

Comments
 (0)