We want to modify the Python test migrated in #20. In the Python test, if a pytest function fails, the complete task fails. For example, in the following GHA, the workflow fails because of a failed pytest: https://github.com/wazuh/wazuh/issues/25534
Although this behavior is correct, we want to make the workflow finish with other success, rather than fail in this kind of case. It seems that there are more options rather than success or failure in GitHub Actions, something like a warning exit code.
Tasks
[ ] Decide the workflow exit status when a pytest fails
Description
We want to modify the Python test migrated in #20. In the Python test, if a pytest function fails, the complete task fails. For example, in the following GHA, the workflow fails because of a failed pytest: https://github.com/wazuh/wazuh/issues/25534
Although this behavior is correct, we want to make the workflow finish with other success, rather than fail in this kind of case. It seems that there are more options rather than
success
orfailure
in GitHub Actions, something like awarning
exit code.Tasks