workflow: Fix errors from ansible-test action - #59
Conversation
…rofile was specified
|
Regarding your latest CI failures, this might help: https://forum.ansible.com/t/making-a-collection-compatible-with-core-2-19-and-templating-changes/41717/2 |
|
@felixfontein @samccann Issues were resolved and CI test has passed https://github.com/sap-linuxlab/community.sap_libs/actions/runs/17938922936 I might have overshot some changes so I will test it out separately as this was not meant to be refactor. If I find that I can do with less changes, I will raise separate PR. |
@felixfontein CI works now, but I am using python matrix to force specific version. Your fix works, but it does not work on Python 2, which is not supported anyway, but github action will pick it. I just tried with removed |
|
|
||
| for line in data_as_list: | ||
| yield line | ||
| yield from data_as_list |
There was a problem hiding this comment.
If you replace for ... yield by yield from, then it won't work with Python 2 anymore. You have to decide whether you actively want to break support for Python 2 in tests.
Your collection still supports it by supporting ansible-core versions that support Python 2 on the target side. |
Premise
CI Action provided by Ansible team must be executed and passing in order to mark our collection as maintained and in good shape.
Changes
pylint:use-yield-fromTests
Tests were done by CI workflow in question.