Updating zephyr test steps from Robot File

Hello, i would like to do the following.

A. In the Zephyr test case, i would like to update the status of a Test step to mark as pass or fail.

B. Update the overall status to fail if any of the steps has failed.

C. Raise defects from the same step if anything failed.

Any github repo or sample ?

Appreciate your help in advance.

Thanks
Ayan