Skip to content

Commit cd5c683

Browse files
author
SentienceDEV
committed
Fix CI: purge pip cache and verify installed package
1 parent e2babe7 commit cd5c683

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)