Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygha_tools-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

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

Hashes for pygha_tools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 918b4702e64e459f541d720fbecc5454931772c807ff8e174c6dca0bec4a29f0
MD5 bc2bbeb86afc6a65e84dd196fdf47efc
BLAKE2b-256 0d23a7cb7da8f050de4274c9493c6a6187338c3a7256bee336ebbe67798c93a4

See more details on using hashes here.

File details

Details for the file pygha_tools-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pygha_tools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fc59aed9e2caaa4b749d00a5d2bff2ddc20346c1c9d04160302eb407bc782d6
MD5 55f2626db13954912253cc5668aa7698
BLAKE2b-256 298c03b51be8207978b627a854f34eaee26d907d4deab2e878ecbd0535b66aa2

See more details on using hashes here.

Supported by

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