Skip to main content

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

Metadata

Release files for GitHub-Action-Python-Example 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GitHub-Action-Python-Example 1.0.2
File Size Uploaded Provenance
GitHub_Action_Python_Example-1.0.2.tar.gz 3.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for GitHub-Action-Python-Example 1.0.2
File Interpreter ABI Platform
GitHub_Action_Python_Example-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / GitHub_Action_Python_Example-1.0.2.tar.gz

Download URL GitHub_Action_Python_Example-1.0.2.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f618d83af996d04f30608a5afea4ed7f8252816b2b2e2c56b2fe9f7d34a5f3cd
BLAKE2b-256 checksum
How to use checksums
395f7eccd9e8be9b91054624077916c753e45f948027b806e1b6e9c73a8c54ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

Release files / GitHub_Action_Python_Example-1.0.2-py3-none-any.whl

Download URL GitHub_Action_Python_Example-1.0.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
890860d4393670f2b04d1d549bdf694adc087be6cc673ec825943037ddfe7c73
BLAKE2b-256 checksum
How to use checksums
367987cf3598f472497b608c92e9f0b0a56ee96395dae83881f031d8841a9af0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

Security for GitHub-Action-Python-Example 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page