Skip to content

Commit 00f37f6

Browse files
authored
Fix test to use the proper index
1 parent e8ec788 commit 00f37f6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
cflags: "-O3"
1414
cxxflags: "-O3"
1515
ldflags: "-O3"
16-
- build_type: "Release"
16+
- build_type: "Debug"
1717
cflags: "-Og -g"
1818
cxxflags: "-Og -g"
1919
ldflags: "-Og -g -gsource-map=inline"
@@ -173,7 +173,7 @@ jobs:
173173
local max_retries=50
174174
local attempt=1
175175
while [ $attempt -le $max_retries ]; do
176-
FORCE_COLOR=1 python test.py "$branch" | tee -a test.log
176+
FORCE_COLOR=1 OCP_WASM_INDEX_URL="$package_index_folder" python test.py "$branch" | tee -a test.log
177177
if grep -q "All tests passed successfully!" test.log; then
178178
echo "Tests finished successfully on attempt $attempt for build123d version $version"
179179
break

build123d/bootstrap_in_pyodide.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import micropip, asyncio
1+
import micropip, asyncio, os
22

33
async def bootstrap():
44
# If using the Pyodide JS API, you need to `loadPackage("micropip")` first.
55

66
# Prioritize the OCP.wasm package repository so that wasm-specific packages are preferred.
7-
micropip.set_index_urls(["https://yeicor.github.io/OCP.wasm", "https://pypi.org/simple"])
7+
ocp_index = os.environ.get("OCP_WASM_INDEX_URL", "https://yeicor.github.io/OCP.wasm")
8+
micropip.set_index_urls([ocp_index, "https://pypi.org/simple"])
89

910
# ONLY for build123d versions <0.10.0, we need to redirect the import of `py_lib3mf` to our ported `lib3mf` package.
1011
await micropip.install("lib3mf")

0 commit comments

Comments
 (0)