Skip to content

Commit 755e77f

Browse files
author
SentienceDEV
committed
fix: YAML syntax error in workflow - use single-line python command
1 parent 3f4a898 commit 755e77f

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,7 @@ jobs:
4242
echo "=== Installed sentience location ==="
4343
python -c "import sentience; print(sentience.__file__)"
4444
echo "=== Check assert_done in installed package ==="
45-
python -c "
46-
import inspect
47-
from sentience.agent_runtime import AgentRuntime
48-
source = inspect.getsource(AgentRuntime.assert_done)
49-
print(source)
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-
"
45+
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')"
5646
5747
- name: Verify source code
5848
shell: bash

0 commit comments

Comments
 (0)