Metadata-Version: 2.1
Name: GitHub-Action-Python-Example
Version: 1.0.2
Summary: It is an example for GitHub Action
Home-page: https://github.com/louis70109/GitHub_Action_Python_Example
Author: NiJia Lin
Author-email: louis70109@gmail.com
Maintainer: NiJia Lin
Maintainer-email: louis70109@gmail.com
License: MIT
Project-URL: Source, https://github.com/louis70109/GitHub_Action_Python_Example
Keywords: GitHubAction Python
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development
Requires-Python: !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
Description-Content-Type: text/markdown
Requires-Dist: requests (>=2.0)

# [GitHub Action Python Example](https://pypi.org/project/GitHub-Action-Python-Example/)

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/louis70109/line-notify#contributing)

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

## Setup PyPi property

- [Go PyPi](https://pypi.org/) ➡️ Your project ➡️ Account Setting.

![](https://nijialin.com/images/2021/action/token1.png)

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

![](https://nijialin.com/images/2021/action/token2.png)

- You would find **username** and **password**.
- Setup **PYPI_USERNAME** and **PYPI_PASSWORD** in GitHub `Setting` ➡️ `Secrets`.
- Click _New repository secret_ and add two property.

![](https://nijialin.com/images/2021/action/token3.png)

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

- Click and draft `Release` note.

![](https://nijialin.com/images/2021/action/release1.png)

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

![](https://nijialin.com/images/2021/action/release4.png)

## Install package

```
pip install GitHub-Action-Python-Example
```

```python
from GitHub_Action_Python_Example.client import HelloWorld

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

# License

[MIT](https://github.com/louis70109/line-notify/blob/master/LICENSE) © [NiJia Lin](https://nijialin.com/about/)


