Python Tools for GitHub Actions
Project description
GitHub Actions Summary
A Python library for creating rich markdown summaries in GitHub Actions.
Installation
pip install github-actions-summary
Usage
from github_actions_summary import Summary, Text, Link, TextStyle, HeadingKind
summary = Summary()
summary.addHeading('Test Results', HeadingKind.H1)\
.addCodeBlock('console.log("hello")', 'js')\
.addTable([
['File', 'Status'],
[Text('foo.js', style=TextStyle.BOLD), '✅ Pass'],
['bar.js', '❌ Fail']
])\
.addLink('View report', 'https://example.com/report')\
.write()
Features
- Builder pattern for fluent API
- Rich text formatting (bold, italic, underlined)
- Headings (H1-H6, Setext)
- Code blocks with syntax highlighting
- Tables with styled cells
- Links with optional styling
- Horizontal dividers
- Blank lines for spacing
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygha_tools-0.1.1.tar.gz
(36.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygha_tools-0.1.1.tar.gz.
File metadata
- Download URL: pygha_tools-0.1.1.tar.gz
- Upload date:
- Size: 36.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
918b4702e64e459f541d720fbecc5454931772c807ff8e174c6dca0bec4a29f0
|
|
| MD5 |
bc2bbeb86afc6a65e84dd196fdf47efc
|
|
| BLAKE2b-256 |
0d23a7cb7da8f050de4274c9493c6a6187338c3a7256bee336ebbe67798c93a4
|
File details
Details for the file pygha_tools-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pygha_tools-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fc59aed9e2caaa4b749d00a5d2bff2ddc20346c1c9d04160302eb407bc782d6
|
|
| MD5 |
55f2626db13954912253cc5668aa7698
|
|
| BLAKE2b-256 |
298c03b51be8207978b627a854f34eaee26d907d4deab2e878ecbd0535b66aa2
|