Skip to main content

It is an example for GitHub Action

Project description

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 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

pip install GitHub-Action-Python-Example
from GitHub_Action_Python_Example.client import HelloWorld

message = HelloWorld(message="Change the World~")
print(message.get_message())

License

MIT © NiJia Lin

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

GitHub_Action_Python_Example-1.0.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page