A reusable github action to package, deploy and and check code to PyPi & TestPyPi
Please see action.yaml for all details.
The following options can be passed:
test_submission
: Bool, if true the package will be uploaded to TestPyPi instead of PyPi (default: false)wheels
: Bool, if true wheels will be created and uploaded (default: true)tests
: Bool, if true there will be an attempt to pull down the newly uploaded package and run tests. Please note this assumes testing viapytest --pyargs inputs.package_name
(default: true)package_name
: Name of package on PyPi, only needed if testing package post-upload. Used for pip installing (default: 'MDAnalysis')module_name
: Name of package directory, only needed if testing package post-upload. Used for pytest pyargs. If unset will usepackage_name
(default: null)test_deps:
: Extra dependencies to install for testing the new package. (defaultpytest
).
An example of how to use this workflow can be seen in this action file.
This currently only support pure Python packages. Future work will switch this action to using cibuildwheels.