Skip to content

Commit dfbf323

Browse files
committed
Add permissions and tests
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 781dcfa commit dfbf323

6 files changed

Lines changed: 23 additions & 11 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- "v*"
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
# Build all Python packages on Linux (pure + backend wheels).
1013
build-linux:

src/sdk/python/Justfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,13 @@ python-wheelhouse-test:
8383
--find-links={{wasm-wheels}} \
8484
--find-links={{python-guest-dist}} \
8585
--with "hyperlight-sandbox[wasm,python_guest]" \
86-
python {{repo-root}}/src/sdk/python/tests/wheelhouse_wasm.py
86+
python {{repo-root}}/src/sdk/python/tests/wheelhouse_wasm_python.py
87+
uv run --no-project --no-index \
88+
--find-links={{core-dist}} \
89+
--find-links={{wasm-wheels}} \
90+
--find-links={{javascript-guest-dist}} \
91+
--with "hyperlight-sandbox[wasm,javascript_guest]" \
92+
python {{repo-root}}/src/sdk/python/tests/wheelhouse_wasm_js.py
8793
uv run --no-project --no-index \
8894
--find-links={{core-dist}} \
8995
--find-links={{hyperlight-js-wheels}} \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from hyperlight_sandbox import Sandbox
22

33
sandbox = Sandbox(backend="hyperlight-js")
4-
result = sandbox.run('console.log("wheelhouse install ok")')
4+
result = sandbox.run('console.log("wheelhouse hyperlight-js install ok")')
55
assert result.success, result.stderr
66
print(result.stdout.strip())

src/sdk/python/tests/wheelhouse_wasm.py

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from hyperlight_sandbox import Sandbox
2+
3+
sandbox = Sandbox(backend="wasm", module="javascript_guest.path")
4+
result = sandbox.run('console.log("wheelhouse wasm javascript install ok")')
5+
assert result.success, result.stderr
6+
print(result.stdout.strip())
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from hyperlight_sandbox import Sandbox
2+
3+
sandbox = Sandbox(backend="wasm", module="python_guest.path")
4+
result = sandbox.run('print("wheelhouse wasm python install ok")')
5+
assert result.success, result.stderr
6+
print(result.stdout.strip())

0 commit comments

Comments
 (0)