So I tried Github Actions for the first time, with the Python packageworkflow option. The tests fail because it can’t import my package.
___________________ERROR collecting tests/test_something.py____________________ ImportError while importing test module '/home/runner/work/my_package/my_package/tests/test_something.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: tests/test_something.py:7: in <module> from my_package import something E ModuleNotFoundError: No module named 'my_package'
Either I have to
Tell the pythonpackage.yml to install my package before running the tests?
pip install .or something? But if this is correct, why isn’t it already there?
Change my package so it doesn’t need to be installed in order for tests to run? Am I not following best practices?