I ran into this issue myself.
I found out that the codecov action is just an upload script. The reports (for coverage etc.) must be generated with the help of other tools.
So for my Java project I added jacoco execution which generates a coverage report. Codecov action is then able to detect this report and upload it to codecov.io.
Regards, Roman