Skip to content

Reusable github action to package, deploy and and check code to PyPi & TestPyPi

License

Notifications You must be signed in to change notification settings

MDAnalysis/pypi-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pypi-deployment

A reusable github action to package, deploy and and check code to PyPi & TestPyPi

Basic usage

Please see action.yaml for all details.

The following options can be passed:

  1. test_submission: Bool, if true the package will be uploaded to TestPyPi instead of PyPi (default: false)
  2. wheels: Bool, if true wheels will be created and uploaded (default: true)
  3. tests: Bool, if true there will be an attempt to pull down the newly uploaded package and run tests. Please note this assumes testing via pytest --pyargs inputs.package_name (default: true)
  4. package_name: Name of package on PyPi, only needed if testing package post-upload. Used for pip installing (default: 'MDAnalysis')
  5. module_name: Name of package directory, only needed if testing package post-upload. Used for pytest pyargs. If unset will use package_name (default: null)
  6. test_deps: : Extra dependencies to install for testing the new package. (default pytest).

Example

An example of how to use this workflow can be seen in this action file.

Note

This currently only support pure Python packages. Future work will switch this action to using cibuildwheels.

About

Reusable github action to package, deploy and and check code to PyPi & TestPyPi

Resources

License

Stars

Watchers

Forks

Packages

No packages published