From 5b2a1da35837a4ca665f4bbe29fe677a3cc2d42f Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Wed, 14 Oct 2026 12:35:43 +0800 Subject: [PATCH 1/2] fix(ci): release workflow installs dev extra + maps; pyyaml in dev extra The release job installed bare '-e .' while the test suite (added in py#35) imports interscript.ml.loader, which requires pyyaml at module level. test.yml already needed the maps checkout and INTERSCRIPT_MAPS_PATH; the release workflow now mirrors it. --- .github/workflows/release.yml | 8 +++++++- pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 271bbce..d12a9cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,8 +16,14 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.12" + - uses: actions/checkout@v4 + with: + repository: interscript/maps + path: maps - run: pip install build pytest - - run: pip install -e . + - run: pip install -e ".[dev]" - run: pytest tests/ -v + env: + INTERSCRIPT_MAPS_PATH: ${{ github.workspace }}/maps/maps - run: python -m build - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/pyproject.toml b/pyproject.toml index 147bc9d..895f111 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ Issues = "https://github.com/interscript/interscript-py/issues" [project.optional-dependencies] ml = ["numpy>=1.26", "pyyaml>=6.0", "onnxruntime>=1.17"] -dev = ["pytest>=7", "onnx>=1.16"] +dev = ["pytest>=7", "onnx>=1.16", "pyyaml>=6.0"] [tool.setuptools.packages.find] where = ["src"] From 6d5af45941ad6a87e6a0106951f2c567197bf7f5 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Wed, 14 Oct 2026 12:42:22 +0800 Subject: [PATCH 2/2] fix(ci): onnxruntime in dev extra (ml modules import it at module level) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 895f111..bdd2cdb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ Issues = "https://github.com/interscript/interscript-py/issues" [project.optional-dependencies] ml = ["numpy>=1.26", "pyyaml>=6.0", "onnxruntime>=1.17"] -dev = ["pytest>=7", "onnx>=1.16", "pyyaml>=6.0"] +dev = ["pytest>=7", "onnx>=1.16", "pyyaml>=6.0", "onnxruntime>=1.17"] [tool.setuptools.packages.find] where = ["src"]