Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Comments a pull request with the pytest code coverage badge and full report
| Date | Stars |
|---|---|
| 2026-07-24 | 264 |
| 2026-07-25 | 264 |
| 2026-07-28 | 264 |
| 2026-07-30 | 264 |
| 2026-08-06 | 264 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# Pytest Coverage Comment


[](https://wakatime.com/badge/user/f838c8aa-c197-42f0-b335-cd1d26159dfd/project/b1e64a51-e518-4b91-bb00-189ffdd444c6)
A GitHub Action that adds pytest coverage reports as comments to your pull requests, helping you track and improve test coverage with visual feedback.
## 🎯 Features
- 📊 **Visual Coverage Reports** - Automatically comments on PRs with detailed coverage tables
- 🏷️ **Coverage Badges** - Dynamic badges showing coverage percentage with color coding
- 📈 **Test Statistics** - Shows passed, failed, skipped tests with execution time
- 🔗 **Direct File Links** - Click to view uncovered lines directly in your repository
- 📁 **Multiple Reports** - Support for monorepo with multiple coverage reports
- 🎨 **Customizable** - Flexible titles, badges, and display options
- 📝 **XML Support** - Works with both text and XML coverage formats
- 🚀 **Smart Updates** - Updates existing comments instead of creating duplicates
## 📋 Table of Contents
<details>
<summary>Click to expand</summary>
- [Pytest Coverage Comment](#pytest-coverage-comment)
- [🎯 Features](#-features)
- [📋 Table of Contents](#-table-of-contents)
- [📦 Prerequisites](#-prerequisites)
- [🚀 Quick Start](#-quick-start)
- [⚙️ Configuration](#️-configuration)
- [Inputs](#inputs)
- [Outputs](#outputs)
- [📚 Usage Examples](#-usage-examples)
- [Basic Usage](#basic-usage)
- [Coverage from XML](#coverage-from-xml)
- [Monorepo Support](#monorepo-support)
- [Docker Workflows](#docker-workflows)
- [Matrix Builds](#matrix-builds)
- [Auto-update README Badge](#auto-update-readme-badge)
- [🔬 Advanced Features](#-advanced-features)
- [🎨 Badge Colors](#-badge-colors)
- [📸 Result Examples](#-result-examples)
- [Standard Comment (Collapsed)](#standard-comment-collapsed)
- [Expanded Coverage Report](#expanded-coverage-report)
- [Multiple Files (Monorepo)](#multiple-files-monorepo)
- [🔧 Troubleshooting](#-troubleshooting)
- [Comment Not Appearing](#comment-not-appearing)
- [Fork PRs](#fork-prs)
- [Unrecognized Arguments Error](#unrecognized-arguments-error)
- [Coverage Report Too Large](#coverage-report-too-large)
- [GitHub Step Summary Too Large](#github-step-summary-too-large)
- [Files Not Found](#files-not-found)
- [Wrong File Links](#wrong-file-links)
- [🤝 Contributing](#-contributing)
- [Development Setup](#development-setup)
- [👥 Contributors](#-contributors)
- [📄 License](#-license)
- [🔗 Similar Actions](#-similar-actions)
</details>
## 📦 Prerequisites
Before using this action, ensure you have the following installed in your Python environment:
- **Python** - Version 3.6+ (Python 3.9+ recommended for latest pytest/pytest-cov versions)
- **pytest** - Python testing framework
- **pytest-cov** - Coverage plugin for pytest (provides `--cov` and `--cov-report` flags)
```bash
pip install pytest pytest-cov
```
> **Note**: The `--cov` and `--cov-report` flags used in the examples below are provided by `pytest-cov`, not pytest itself. If you see an error like `pytest: error: unrecognized arguments: --cov`, you need to install `pytest-cov`.
<details>
<summary>Python version compatibility</summary>
- **Python 3.9+**: Supported by latest pytest (8.4+) and pytest-cov (6.0+) versions
- **Python 3.8**: Use pytest-cov < 6.0.0 (e.g., pytest-cov 5.x)
- **Python 3.7**: Use pytest-cov < 5.0.0 (e.g., pytest-cov 4.x)
- **Python 3.6 and older**: Use older versions of pytest and pytest-cov
For most users, we recommend using **Python 3.9+** with the latest versions of pytest and pytest-cov to get the latest features and security updates.
</details>
## 🚀 Quick Start
Excerpt of 31,883 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:47fd3db6d7ba2235, topic:testing