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 4242 run : curl https://get.wasmer.io -sSfL | sh -s ${{ inputs.wasmer-version }}
4343 - name : Setup project for wasmer
4444 run : |
45+ cd testing
4546 uv pip compile pyproject.toml \
4647 --python-version=${{ inputs.python-version }} \
4748 --universal \
5960 --compile
6061 # Ensure tests pass on wasmer
6162 - 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 11[package ]
22name = " wasmer/build-scripts"
33version = " 0.1.10"
4- entrypoint = " start "
4+ entrypoint = " server "
55
66[dependencies ]
77"wasmer/python-native" = " =0.1.11"
@@ -12,7 +12,7 @@ entrypoint = "start"
1212"/opt/venv/packages" = " ./wasix-site-packages"
1313
1414[[command ]]
15- name = " start "
15+ name = " server "
1616module = " wasmer/python-native:python"
1717runner = " wasi"
1818
@@ -24,3 +24,17 @@ env = [
2424 " PYTHONPATH=/opt/venv/packages" ,
2525 " HOME=/app" ,
2626]
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