-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #296 from InsightSoftwareConsortium/elastix-5.2.0
ENH: Bump elastix to 5.2.0, update wasm
- Loading branch information
Showing
98 changed files
with
12,624 additions
and
6,446 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,33 +29,16 @@ jobs: | |
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | ||
|
||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install | ||
run: | | ||
npm ci | ||
npm run build:testData | ||
- uses: prefix-dev/[email protected] | ||
|
||
- name: Build TypeScript | ||
working-directory: ./wasm/typescript | ||
- name: Build | ||
run: | | ||
npm ci | ||
npm run build | ||
pixi run build | ||
- name: Test TypeScript | ||
working-directory: ./wasm/typescript | ||
run: | | ||
npm test | ||
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0 | ||
with: | ||
python-version: '3.10' | ||
pixi run test-typescript | ||
- name: Test Python WASI | ||
working-directory: ./wasm/python/itkwasm-elastix-wasi | ||
run: | | ||
pip install pytest itkwasm-compare-images itk-io | ||
pip install -e . | ||
pytest -s | ||
pixi run test-python-wasi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,5 @@ wasi-build | |
emscripten-build | ||
wasm/typescript/demo/ | ||
wasm/test | ||
micromamba/ | ||
.pixi/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: itkwasm-elastix | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- pytest | ||
- python=3.11 | ||
- pip | ||
- pip: | ||
- hatch | ||
- itkwasm-compare-images | ||
- itkwasm-image-io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
function die() { | ||
echo "$1" | ||
exit 1 | ||
} | ||
|
||
export ITK_WASM_DESCRIPTION=${ITK_WASM_DESCRIPTION:-$(cat package.json | jq -e -r '."itk-wasm"."description"')} | ||
if [[ "${ITK_WASM_DESCRIPTION}" = "null" ]]; then | ||
die "itk-wasm.description not set in package.json" | ||
fi | ||
|
||
export ITK_WASM_REPOSITORY=${ITK_WASM_REPOSITORY:-$(cat package.json | jq -e -r '."itk-wasm"."repository"')} | ||
if [[ "${ITK_WASM_REPOSITORY}" = "null" ]]; then | ||
die "itk-wasm.repository not set in package.json" | ||
fi | ||
|
||
export ITK_WASM_EMSCRIPTEN_DOCKER_IMAGE=${ITK_WASM_EMSCRIPTEN_DOCKER_IMAGE:-$(cat package.json | jq -e -r '."itk-wasm"."emscripten-docker-image" // "itkwasm/emscripten:latest"')} | ||
export ITK_WASM_WASI_DOCKER_IMAGE=${ITK_WASM_WASI_DOCKER_IMAGE:-$(cat package.json | jq -e -r '."itk-wasm"."wasi-docker-image" // "itkwasm/wasi:latest"')} | ||
|
||
export ITK_WASM_TEST_DATA_HASH=${ITK_WASM_TEST_DATA_HASH:-$(cat package.json | jq -e -r '."itk-wasm"."test-data-hash"')} | ||
export ITK_WASM_TEST_DATA_URLS=${ITK_WASM_TEST_DATA_URLS:-$(cat package.json | jq -e -r '."itk-wasm"."test-data-urls" | join(" ")')} | ||
|
||
export ITK_WASM_TYPESCRIPT_PACKAGE_NAME=${ITK_WASM_TYPESCRIPT_PACKAGE_NAME:-$(cat package.json | jq -e -r '."itk-wasm"."typescript-package-name"')} | ||
if [[ "${ITK_WASM_TYPESCRIPT_PACKAGE_NAME}" = "null" ]]; then | ||
die "itk-wasm.typescript-package-name not set in package.json" | ||
fi | ||
export ITK_WASM_TYPESCRIPT_OUTPUT_DIR=${ITK_WASM_TYPESCRIPT_OUTPUT_DIR:-$(cat package.json | jq -e -r '."itk-wasm"."typescript-output-dir" // "typescript"')} | ||
|
||
export ITK_WASM_PYTHON_PACKAGE_NAME=${ITK_WASM_PYTHON_PACKAGE_NAME:-$(cat package.json | jq -e -r '."itk-wasm"."python-package-name"')} | ||
if [[ "${ITK_WASM_PYTHON_PACKAGE_NAME}" = "null" ]]; then | ||
die "itk-wasm.python-package-name not set in package.json" | ||
fi | ||
export ITK_WASM_PYTHON_OUTPUT_DIR=${ITK_WASM_PYTHON_OUTPUT_DIR:-$(cat package.json | jq -e -r '."itk-wasm"."python-output-dir" // "python"')} | ||
|
||
export ITK_WASM_PACKAGE_VERSION=${ITK_WASM_PACKAGE_VERSION:-$(cat package.json | jq -e -r '."itk-wasm"."package-version"')} | ||
if [[ "${ITK_WASM_PACKAGE_VERSION}" = "null" ]]; then | ||
die "itk-wasm.package-version not set in package.json" | ||
fi | ||
|
||
env |
Oops, something went wrong.