File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,28 @@ jobs:
3131
3232 - name : Install dependencies
3333 run : |
34+ pip cache purge || true
35+ pip uninstall -y sentienceapi || true
3436 pip install --no-cache-dir -e ".[dev]"
3537 pip install pre-commit mypy types-requests
36- # Verify local install is used
37- python -c "import sentience.agent_runtime; import inspect; src = inspect.getsourcefile(sentience.agent_runtime); print(f'Using: {src}')"
38+
39+ - name : Verify installed package
40+ shell : bash
41+ run : |
42+ echo "=== Installed sentience location ==="
43+ python -c "import sentience; print(sentience.__file__)"
44+ echo "=== Check assert_done source code ==="
45+ python -c "
46+ import inspect
47+ from sentience.agent_runtime import AgentRuntime
48+ source = inspect.getsource(AgentRuntime.assert_done)
49+ print(source[:500])
50+ if 'assertTrue' in source :
51+ print('ERROR : assertTrue found in installed package!')
52+ exit(1)
53+ else :
54+ print('Good : assert_ is correctly used')
55+ "
3856
3957 - name: Lint with pre-commit
4058 continue-on-error: true
You can’t perform that action at this time.
0 commit comments