Skip to content

Commit a83b06f

Browse files
committed
tweaks: Test pipeline should in theory now work
1 parent 250060c commit a83b06f

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/test-python-index.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
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 \
@@ -59,4 +60,4 @@ jobs:
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

testing/wasmer.toml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "wasmer/build-scripts"
33
version = "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"
1616
module = "wasmer/python-native:python"
1717
runner = "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+
]

0 commit comments

Comments
 (0)