File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 3333 run : |
3434 pip cache purge || true
3535 pip uninstall -y sentienceapi || true
36+ # Clean any bytecode cache
37+ find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
38+ find . -type f -name "*.pyc" -delete 2>/dev/null || true
3639 pip install --no-cache-dir -e ".[dev]"
3740 pip install pre-commit mypy types-requests
3841
8689 echo "Extension directory not found, skipping build"
8790 fi
8891
92+ - name : Pre-test verification
93+ shell : bash
94+ run : |
95+ echo "=== Final check before tests ==="
96+ python -c "
97+ from sentience.agent_runtime import AgentRuntime
98+ import inspect
99+ source = inspect.getsource(AgentRuntime.assert_done)
100+ print('assert_done source:')
101+ print(source)
102+ if 'assertTrue' in source :
103+ print('ERROR : assertTrue found in assert_done!')
104+ exit(1)
105+ print('OK : assert_ is used correctly')
106+ "
107+
89108 - name: Run tests
90109 run: |
91110 pytest tests/ -v
You can’t perform that action at this time.
0 commit comments