{"library":"pytest-github-actions-annotate-failures","title":"pytest-github-actions-annotate-failures","description":"A pytest plugin designed to enhance GitHub Actions workflows by annotating failed tests directly in the pull request or commit view. It parses pytest output and generates GitHub workflow commands to create inline annotations for test failures, providing immediate feedback on problematic code lines. The project is actively maintained under the pytest-dev organization, with its latest version being 0.4.0.","language":"python","status":"active","last_verified":"Fri Apr 10","install":{"commands":["pip install pytest-github-actions-annotate-failures"],"cli":null},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"mkdir my_project\ncd my_project\n\n# Create a test file\ncat <<EOF > test_example.py\ndef test_passing():\n    assert True\n\ndef test_failing():\n    assert False\nEOF\n\n# Create GitHub Actions workflow file\nmkdir -p .github/workflows\ncat <<EOF > .github/workflows/ci.yml\nname: Test with Annotations\non: [push, pull_request]\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v4\n    - name: Set up Python\n      uses: actions/setup-python@v5\n      with:\n        python-version: '3.10'\n    - name: Install dependencies\n      run: pip install pytest pytest-github-actions-annotate-failures\n    - name: Run tests with annotations\n      run: pytest\nEOF\n\n# To see it in action, commit these files to a GitHub repository\n# and push. The workflow will run and failed tests will show\n# annotations in the 'Checks' or 'Actions' tab.","lang":"bash","description":"This quickstart demonstrates how to set up `pytest-github-actions-annotate-failures` in a basic GitHub Actions workflow. Once installed and integrated, failed tests will automatically produce inline annotations in your GitHub pull requests or commit details, pointing directly to the line of code that caused the failure. No special command-line flags are typically needed for activation, as pytest discovers the plugin automatically upon installation.","tag":null,"tag_description":null,"last_tested":"2026-04-25","results":[{"runtime":"python:3.10-alpine","exit_code":1},{"runtime":"python:3.10-slim","exit_code":1},{"runtime":"python:3.11-alpine","exit_code":1},{"runtime":"python:3.11-slim","exit_code":1},{"runtime":"python:3.12-alpine","exit_code":1},{"runtime":"python:3.12-slim","exit_code":1},{"runtime":"python:3.13-alpine","exit_code":1},{"runtime":"python:3.13-slim","exit_code":1},{"runtime":"python:3.9-alpine","exit_code":1},{"runtime":"python:3.9-slim","exit_code":1}]},"compatibility":null}