pytest-github-actions-annotate-failures
pytest plugin to annotate failed tests with a workflow command for GitHub Actions
Decision gist · record as of 2026-08-14
Yes. This plugin is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and solves a real workflow problem—making test failures visible in GitHub Actions without extra configuration. Install it if you run pytest in GitHub Actions and want failures to surface directly in the UI.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- When running tests in Docker, the GITHUB_ACTIONS environment variable must be manually set to true.
- If tests run from a subdirectory, PYTEST_RUN_PATH must be set to the relative path for correct file identification.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it straightforward to integrate into any project.
last release 2026-06-19 (56 days) · last repo commit 2026-08-13 · 178 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,672,515 downloads/mo, #2,531 on PyPI
Alternatives
Verify before relying
pip install pytest-github-actions-annotate-failures
pytest
# In GitHub Actions workflow:
- run: pytest- Whether warning annotations (available with Pytest 6.0+) work correctly with all current pytest versions
- Performance impact when handling large numbers of test failures in a single run
What it is and what it does
This is a pytest plugin designed to integrate test results directly into GitHub Actions workflows. When tests fail, it uses GitHub Actions workflow commands to create annotations that appear in the Actions UI, pull request checks, and job summaries, making failures immediately visible without requiring developers to dig through logs.
The plugin works by hooking into pytest's test execution and capturing failures, then emitting GitHub workflow annotation commands that the Actions runner interprets. It requires only pytest as a runtime dependency and has low install friction. It supports warning annotations when used with Pytest 6.0 or later, and can be disabled with a command-line flag if needed. For Docker-based test runs or tests in repository subdirectories, environment variables must be configured to ensure GitHub correctly maps reported failures to source files.
Use it for
- Automatically surface test failures in GitHub Actions job summaries and PR checks without manual log parsing
- Integrate pytest test results into GitHub's native CI/CD UI for faster failure identification
- Annotate both test failures and warnings in GitHub Actions workflows with a single plugin install
- Run tests in Docker containers within GitHub Actions while preserving failure annotations via environment variable configuration
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This plugin is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and solves a real workflow problem—making test failures visible in GitHub Actions without extra configuration. Install it if you run pytest in GitHub Actions and want failures to surface directly in the UI.
Install
pytest-github-actions-annotate-failures on PyPI
Before you install
Low install friction with a single runtime dependency on pytest. Actively maintained with a recent release; last commit on 2026-08-13 and marked as Production/Stable.
Requires Python 3.10 or later. When running tests in Docker, the GITHUB_ACTIONS environment variable must be manually set to true. If tests run from a subdirectory, PYTEST_RUN_PATH must be set to the relative path for correct file identification.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it straightforward to integrate into any project.
Quickstart
pip install pytest-github-actions-annotate-failures
pytest
# In GitHub Actions workflow:
- run: pytest
Verify before relying
- Whether warning annotations (available with Pytest 6.0+) work correctly with all current pytest versions
- Performance impact when handling large numbers of test failures in a single run
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepytest |
| Maintenance | Actively maintained 56 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,672,515 / month, #2,531 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleFramework :: PytestIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: System :: Systems AdministrationTopic :: Utilities |
Evidence: pytest_github_actions_annotate_failures-0.4.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest github actions integration”
- pytest-github-actions-annotate-failuresA pytest plugin that automatically annotates failed tests in GitHub…
- bar-raiserBar-Raiser creates GitHub checks with inline annotations, autofix…
- pytest-json-ctrfA pytest plugin that generates test reports in Common Test Report…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also pytest-progress · github-action-utils · lightning-utilities · pytest-retry · pytest-instafail · pytest-check · tox-gh-actions · actionlint-py · pytest-md-report · tox-gh