Unable to execute ansible-test network-integration command on ansible 2.19

I am unable to execute playbooks using ansible-test network-integration command on ansible-core 2.19.0b5.
I have used the ansible.builtin.include_tasks command and passed a .yml file, which in turn performs some tasks.
When I do so, I get an error stating the file is not found for the file passed in the include_tasks command.

- name: Check the firmware version
  ansible.builtin.include_tasks: _check_firmware_version_supported.yml

Here I get the following error:
[Errno 2] No such file or directory

I have also exported the ANSIBLE_COLLECTIONS_PATH and PYTHONPATH variables.

What am I missing here?

Is the file with the include_tasks directive in the same directory as the _check_firmware_version_supported.yml file?

If not could you explain, or illustrate via the use of tree, your file structure?

If the file is from a different role perhaps you need to use include_role with a tasks_from for _check_firmware_version_supported?

Hello Chris,
Thank you for responding.
Yes, my file belongs to the same directory.
This playbook is not calling any roles.

I have observed this issue only in Ansible Core 2.19 (I have tested it on Ansible 2.19.0b3 and 2.19.0b5 ).
This has worked fine for me in the 2.18 version of Ansible

@trisha-dell Can you open a bug report and provide a reproducer?

I have raised a GitHub issue, please let me know if anything else is needed.