github-custom-actions


Namegithub-custom-actions JSON
Version 2.2.0 PyPI version JSON
download
home_pageNone
SummaryPython package for creating custom GitHub Actions.
upload_time2024-09-17 04:22:06
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseCopyright (c) 2024 Andrey Sorokin <andrey@sorokin.engineer> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords actions github workflow
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Build Status](https://github.com/andgineer/github-custom-actions/workflows/CI/badge.svg)](https://github.com/andgineer/github-custom-actions/actions)
[![Coverage](https://raw.githubusercontent.com/andgineer/github-custom-actions/python-coverage-comment-action-data/badge.svg)](https://htmlpreview.github.io/?https://github.com/andgineer/github-custom-actions/blob/python-coverage-comment-action-data/htmlcov/index.html)
# github-custom-actions

Python package for creating [custom GitHub Actions](https://docs.github.com/en/actions/creating-actions/about-custom-actions). 

#### Example of usage

```python
from github_custom_actions import ActionBase
    
class MyAction(ActionBase):
    def main(self):
        self.outputs["runner-os"] = self.env.runner_os
        self.summary.text += (
            self.render(
                "### {{ inputs['my-input'] }}.\n"
                "Have a nice day!"
            )
        )

if __name__ == "__main__":
    MyAction().run()
```

# Documentation

[Github Custom Actions](https://andgineer.github.io/github-custom-actions/)

# Developers

Do not forget to run `. ./activate.sh`.

# Scripts
Install [invoke](https://docs.pyinvoke.org/en/stable/) preferably with [pipx](https://pypa.github.io/pipx/):

    pipx install invoke

For a list of available scripts run:

    invoke --list

For more information about a script run:

    invoke <script> --help

## Coverage report
* [Codecov](https://app.codecov.io/gh/andgineer/github-custom-actions/tree/main/src%2Fgithub_custom_actions)
* [Coveralls](https://coveralls.io/github/andgineer/github-custom-actions)

> Created with cookiecutter using [template](https://github.com/andgineer/cookiecutter-python-package)
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "github-custom-actions",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "actions, github, workflow",
    "author": null,
    "author_email": "Andrey Sorokin <andrey@sorokin.engineer>",
    "download_url": "https://files.pythonhosted.org/packages/6a/53/c53d3443324eb6af79391ef8beed9447a4c70ba22febb1000f98b33b90d5/github_custom_actions-2.2.0.tar.gz",
    "platform": null,
    "description": "[![Build Status](https://github.com/andgineer/github-custom-actions/workflows/CI/badge.svg)](https://github.com/andgineer/github-custom-actions/actions)\n[![Coverage](https://raw.githubusercontent.com/andgineer/github-custom-actions/python-coverage-comment-action-data/badge.svg)](https://htmlpreview.github.io/?https://github.com/andgineer/github-custom-actions/blob/python-coverage-comment-action-data/htmlcov/index.html)\n# github-custom-actions\n\nPython package for creating [custom GitHub Actions](https://docs.github.com/en/actions/creating-actions/about-custom-actions). \n\n#### Example of usage\n\n```python\nfrom github_custom_actions import ActionBase\n    \nclass MyAction(ActionBase):\n    def main(self):\n        self.outputs[\"runner-os\"] = self.env.runner_os\n        self.summary.text += (\n            self.render(\n                \"### {{ inputs['my-input'] }}.\\n\"\n                \"Have a nice day!\"\n            )\n        )\n\nif __name__ == \"__main__\":\n    MyAction().run()\n```\n\n# Documentation\n\n[Github Custom Actions](https://andgineer.github.io/github-custom-actions/)\n\n# Developers\n\nDo not forget to run `. ./activate.sh`.\n\n# Scripts\nInstall [invoke](https://docs.pyinvoke.org/en/stable/) preferably with [pipx](https://pypa.github.io/pipx/):\n\n    pipx install invoke\n\nFor a list of available scripts run:\n\n    invoke --list\n\nFor more information about a script run:\n\n    invoke <script> --help\n\n## Coverage report\n* [Codecov](https://app.codecov.io/gh/andgineer/github-custom-actions/tree/main/src%2Fgithub_custom_actions)\n* [Coveralls](https://coveralls.io/github/andgineer/github-custom-actions)\n\n> Created with cookiecutter using [template](https://github.com/andgineer/cookiecutter-python-package)",
    "bugtrack_url": null,
    "license": "Copyright (c) 2024 Andrey Sorokin <andrey@sorokin.engineer>  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Python package for creating custom GitHub Actions.",
    "version": "2.2.0",
    "project_urls": {
        "Documentation": "https://andgineer.github.io/github-custom-actions/",
        "Homepage": "https://andgineer.github.io/github-custom-actions/"
    },
    "split_keywords": [
        "actions",
        " github",
        " workflow"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f8cbb71f3a19c0c1000d28dd128b2084112a03ca0d117416ee5fe063c0098ba5",
                "md5": "2fb2e6003c65149bf5b8e68d4105c18c",
                "sha256": "7b6795290baeb0d79ad6b28ce46800dc9ab1729bab073ec23e4bbdd2f9c5817f"
            },
            "downloads": -1,
            "filename": "github_custom_actions-2.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2fb2e6003c65149bf5b8e68d4105c18c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 13975,
            "upload_time": "2024-09-17T04:22:04",
            "upload_time_iso_8601": "2024-09-17T04:22:04.564864Z",
            "url": "https://files.pythonhosted.org/packages/f8/cb/b71f3a19c0c1000d28dd128b2084112a03ca0d117416ee5fe063c0098ba5/github_custom_actions-2.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6a53c53d3443324eb6af79391ef8beed9447a4c70ba22febb1000f98b33b90d5",
                "md5": "91112e9aca71145b13c5f0b72fec8d4c",
                "sha256": "d02f46c9f3b266f31ab209bae05f7999a679bc26eaa52ec253e5afbf04e1f30c"
            },
            "downloads": -1,
            "filename": "github_custom_actions-2.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "91112e9aca71145b13c5f0b72fec8d4c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 87539,
            "upload_time": "2024-09-17T04:22:06",
            "upload_time_iso_8601": "2024-09-17T04:22:06.159626Z",
            "url": "https://files.pythonhosted.org/packages/6a/53/c53d3443324eb6af79391ef8beed9447a4c70ba22febb1000f98b33b90d5/github_custom_actions-2.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-17 04:22:06",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "github-custom-actions"
}
        
Elapsed time: 0.33705s