Skip to content

Commit 043c967

Browse files
author
SentienceDEV
committed
fix tests
1 parent 02b9a5b commit 043c967

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ jobs:
4646
echo "=== Installed sentience location ==="
4747
python -c "import sentience; print(sentience.__file__)"
4848
echo "=== Check assert_done in installed package ==="
49-
python -c "import inspect; from sentience.agent_runtime import AgentRuntime; source = inspect.getsource(AgentRuntime.assert_done); print(source); exit(1) if 'assertTrue' in source else print('Good: assert_ is correctly used')"
49+
python -c "import inspect; from sentience.agent_runtime import AgentRuntime; source = inspect.getsource(AgentRuntime.assert_done); print('assert_done source:'); print(source); exit(1) if 'assertTrue' in source else print('Good: assert_ is correctly used')" || {
50+
echo "WARNING: Installed package has old code. Reinstalling..."
51+
pip uninstall -y sentienceapi || true
52+
pip install --no-cache-dir -e ".[dev]"
53+
echo "Reinstalled. Verifying again..."
54+
python -c "import inspect; from sentience.agent_runtime import AgentRuntime; source = inspect.getsource(AgentRuntime.assert_done); exit(1) if 'assertTrue' in source else print('Good: assert_ is correctly used after reinstall')"
55+
}
5056
5157
- name: Verify source code
5258
shell: bash

0 commit comments

Comments
 (0)