File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 42
42
run : curl https://get.wasmer.io -sSfL | sh -s ${{ inputs.wasmer-version }}
43
43
- name : Setup project for wasmer
44
44
run : |
45
+ cd testing
45
46
uv pip compile pyproject.toml \
46
47
--python-version=${{ inputs.python-version }} \
47
48
--universal \
59
60
--compile
60
61
# Ensure tests pass on wasmer
61
62
- name : Run tests (wasmer)
62
- run : wasmer run .
63
+ run : wasmer run . --registry=wasmer.wtf --command-name=test --net
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " wasmer/build-scripts"
3
3
version = " 0.1.10"
4
- entrypoint = " start "
4
+ entrypoint = " server "
5
5
6
6
[dependencies ]
7
7
"wasmer/python-native" = " =0.1.11"
@@ -12,7 +12,7 @@ entrypoint = "start"
12
12
"/opt/venv/packages" = " ./wasix-site-packages"
13
13
14
14
[[command ]]
15
- name = " start "
15
+ name = " server "
16
16
module = " wasmer/python-native:python"
17
17
runner = " wasi"
18
18
@@ -24,3 +24,17 @@ env = [
24
24
" PYTHONPATH=/opt/venv/packages" ,
25
25
" HOME=/app" ,
26
26
]
27
+
28
+ [[command ]]
29
+ name = " test"
30
+ module = " wasmer/python-native:python"
31
+ runner = " wasi"
32
+
33
+ [command .annotations .wasi ]
34
+ main-args = [" /app/run-tests.py" ]
35
+ env = [
36
+ " PYTHONEXECUTABLE=/bin/python" ,
37
+ " PYTHONHOME=/cpython" ,
38
+ " PYTHONPATH=/opt/venv/packages" ,
39
+ " HOME=/app" ,
40
+ ]
You can’t perform that action at this time.
0 commit comments