Runs a simple test to import all the Python files beneath a particular module. Useful for smoke-testing whether there are import loops; a common failing of Python IDEs is that they're poor at finding import loops.
Assumes that Python has already been set up.
Example usage:
- uses: UoMResearchIT/actions/python-import-all-test@v1.2.3
with:
module: mymodule-
moduleThe name of the module to start the search at. Not a filename. Required.
Example:
foo.gorp -
exclusionsComma-separated list of names of modules to ignore. Optional.
Example:
foo.bar, foo.grill -
remove-pyc-filesWhether to remove any
.pycfiles present. Not normally required by CI. Optional.Defaults to
false. -
python-rootRoot of where to find Python packages. Only needed if the code has not already been installed locally. Optional.
Defaults to
.
None.
No special permissions required.