项目作者: louis70109

项目描述 :
Python package template for GitHub Action
高级语言: Python
项目地址: git://github.com/louis70109/GitHub_Action_Python_Package_Example.git
创建时间: 2021-02-05T06:06:20Z
项目社区:https://github.com/louis70109/GitHub_Action_Python_Package_Example

开源协议:MIT License

下载


GitHub Action Python Example

License: MIT
PRs Welcome

This is a GitHub Action example for an auto publish PyPi package and test automation.

Setup PyPi property

  • Go to PyPi ➡️ Your project ➡️ Account Setting.

  • Create an API token.
    • Note: If you just first time create the token, need to select all project at Scope.

  • You would find username and password.
  • Setup PYPI_USERNAME and PYPI_PASSWORD in GitHub Setting ➡️ Secrets.
  • Click New repository secret and add two property.

  • Modify GitHub_Action_Python_Example/__version__.py version number(e.g. 1.0.2).

  • Click and draft Release note.

  • .github/workflows/publish.yml will help you to publish package to PyPi.

Install package

  1. pip install GitHub-Action-Python-Example
  1. from GitHub_Action_Python_Example.client import HelloWorld
  2. message = HelloWorld(message="Change the World~")
  3. print(message.get_message())

License

MIT © NiJia Lin