wazuh / wazuh-installation-assistant

Wazuh - Installation assistant
https://wazuh.com/
GNU General Public License v2.0
0 stars 3 forks source link

Avoid failed workflow if a pytest fails #47

Open davidcr01 opened 1 month ago

davidcr01 commented 1 month ago

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 or failure in GitHub Actions, something like a warning exit code.

Tasks