Skip to content

Commit 3820144

Browse files
authored
ci: editable-install the package in Scheduled Tests (#129)
The thin-binder refactor moved every conversion into the compiled `_rust` extension, which maturin builds into site-packages — not the source tree. Scheduled Tests ran tox (`unittest discover` from the repo root) without first building the extension, so `import num2words2` resolved to the source dir, found no `_rust`, and every test module failed to import. Add `pip install -e .` (matching ci.yml) so the extension is present.
1 parent cae4115 commit 3820144

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/scheduled-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
python -m pip install --upgrade pip
3030
pip install tox tox-gh-actions
3131
pip install -r tests/requirements-test.txt
32+
# Build the compiled `_rust` extension into the source tree so tox's
33+
# `unittest discover` (run from the repo root) imports it instead of
34+
# shadowing the package with the source dir, which has no _rust.
35+
pip install -e .
3236
3337
- name: Run tests with tox
3438
run: tox

0 commit comments

Comments
 (0)