You could do something similar also for Github Actions, you need to change the environment variables, but this is definitely not the recommended way of doing code coverage for the last few years, not even in Travis since that was as easy as
codecov: true
coverrals: true
in the Travis script