In case of monorepo add additional parameter -m module_name. You can upload multiple coverage files using the -m flag.Don’t forget to add your access token to the repo secrets under the name “ACCESS_TOKEN”.
You have to create a .coveragerc file in the project’s root folder to include all the source files in the test coverage calculation.Example:
Copy
# include every Python file under the repo rootsource = .# exclude tests, virtualenvs, build artifacts, etc.omit = */tests/* */.venv/* */build/* */dist/*
When you assign source to ”.” , It checks for every python file in the root folder and its sub directories. You can omit some directories by placing them in the omit section of the file.