Skip to content

Commit 38d4913

Browse files
author
SentienceDEV
committed
Add verification of installed package in CI
1 parent 6f00a00 commit 38d4913

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,24 @@ jobs:
3434
pip install --no-cache-dir -e ".[dev]"
3535
pip install pre-commit mypy types-requests
3636
37+
- name: Verify installed package
38+
shell: bash
39+
run: |
40+
echo "=== Installed sentience location ==="
41+
python -c "import sentience; print(sentience.__file__)"
42+
echo "=== Check assert_done in installed package ==="
43+
python -c "
44+
import inspect
45+
from sentience.agent_runtime import AgentRuntime
46+
source = inspect.getsource(AgentRuntime.assert_done)
47+
print(source)
48+
if 'assertTrue' in source:
49+
print('ERROR: assertTrue found in installed package!')
50+
exit(1)
51+
else:
52+
print('Good: assert_ is correctly used')
53+
"
54+
3755
- name: Verify source code
3856
shell: bash
3957
run: |

0 commit comments

Comments
 (0)