The GitHub action will take all the dependencies of a given Python package and add them to a specified path.
The important parameters are:
path: path to add the dependencies to
recursive: recursively add the dependencies of the dependencies (default: True)
commit: Whether or not to commit the changes to the repository (default: False)
For example, if I have the following file structure:
- my_package/
- my_package/
- __init__.py
- main.py
- deps/
- requirements.txt
I have path set to my_package/deps, then all the dependencies outlined in requirements.txt should be added to the deps folder. The specific packages will depend on the recursive flag.
Once added, they should be committed to the repository if commit is True.