Skip to content

Commit 105ba6e

Browse files
dionhaefnernmheim
andauthored
fix: fix + test for missing deps in pip install test (#278)
#### Relevant issue or PR n/a #### Description of changes ☝️ #### Testing done CI --------- Co-authored-by: Niklas Heim <niklas.heim@simulation.science>
1 parent 1d4f3d8 commit 105ba6e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/test_pip_install.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Test installation via pip
33
on:
44
# run on PRs for validation
55
pull_request:
6-
paths:
7-
- 'requirements.txt'
8-
96

107
jobs:
118
test-pip-install:
@@ -19,6 +16,9 @@ jobs:
1916
python-version:
2017
- "3.10"
2118
- "3.13"
19+
20+
fail-fast: false
21+
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v4
@@ -32,3 +32,7 @@ jobs:
3232
run: |
3333
pip install -r requirements.txt
3434
pip install --no-deps .
35+
36+
- name: Ensure CLI is usable (no missing deps)
37+
run: |
38+
tesseract --help

tesseract_core/sdk/tesseract.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
from pydantic import BaseModel, TypeAdapter, ValidationError
1919
from pydantic_core import InitErrorDetails
2020

21-
from tesseract_core.runtime.config import update_config
22-
2321
from . import engine
2422

2523
PathLike = str | Path
@@ -181,6 +179,8 @@ def from_tesseract_api(
181179
Returns:
182180
A Tesseract instance.
183181
"""
182+
from tesseract_core.runtime.config import update_config
183+
184184
if isinstance(tesseract_api, str | Path):
185185
from tesseract_core.runtime.core import load_module_from_path
186186

0 commit comments

Comments
 (0)