File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33on :
44 push :
5- branches : [mcp_enhancement, main]
5+ branches : [main]
66 pull_request :
7- branches : [mcp_enhancement, main]
7+ branches : [main]
88
99jobs :
1010 test :
Original file line number Diff line number Diff line change 55
66set -euo pipefail
77
8- # Disable -e for the pytest call so we can inspect the exit code ourselves.
8+ # Disable -e for the pytest call to be able to inspect the exit code
99set +e
10+
11+ # TODO: put the dirs in a list
1012uv run pytest services/mcp_k8s_server/tests services/agent_chatbot/tests -v
11- code =$?
12- set -e
13+ rc =$?
14+ set -e # Set it back now
1315
14- if [ $code -eq 4 ] || [ $code -eq 5 ]; then
16+ if [ $rc -eq 4 ] || [ $rc -eq 5 ]; then
17+ # This is for having empty dirs. Should probably nix this later.
1518 echo " No tests collected — treating as success."
1619 exit 0
1720fi
1821
19- exit $code
22+ exit $rc
You can’t perform that action at this time.
0 commit comments