I have the following directory structure:
main_dir/
|--.git/
|--.github/
|--workflows/
|--main.yml
|--package/
|--__init__.py
|--config.py
|--tests/
|--pytest.ini
|--test_config.py
And in test/test_config.py
the first line import a class from the config.py file:
from package.config import Config
These test work when running locally, but on GitHub Actions I get the error ModuleNotFoundError: No module named 'package'
. The working directory is the same on both (main_dir). Where am I going wrong?