{
  "markdown": "# 🧪 Pytest Summary GitHub Action\n\nThis GitHub Action generates a detailed, collapsible summary of **failed tests** from a [`pytest-json-report`](https://github.com/pytest-dev/pytest-json-report) output file.\n\n✅ Shows test results directly in the GitHub Actions summary\n📦 Built for reuse in monorepos, shared workflows, and CI pipelines\n\n---\n\n## 📥 Inputs\n\n| Name         | Description                       | Required | Default        |\n|--------------|-----------------------------------|----------|----------------|\n| `report-path` | Path to `pytest.json` file         | No       | `pytest.json`  |\n\n---\n\n## 📤 Output\n\n- If all tests pass:\n  `✅ All tests passed!`\n\n- If there are failures:\n  Outputs a collapsible `<details>` section per failed test showing:\n  - Test ID\n  - Failure traceback (`longrepr`)\n  - Captured output (stdout/stderr)\n\nExample:\n\n<details>\n<summary><code>tests/test_foo.py::test_bar</code></summary>\n\n```text\nTraceback (most recent call last):\n  ...\nAssertionError: expected 1 == 2\n\nCaptured output:\nRunning test...\n```\n<details>\n\n\n🚀 Usage\n\n```yaml\njobs:\n  summarize:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Run Pytest\n        run: |\n          pip install pytest pytest-json-report\n          pytest --json-report --json-report-file=pytest.json\n\n      - name: Summarize pytest failures\n        uses: agent-ix/pytest-summary@v1\n        with:\n          report-path: pytest.json\n\n```",
  "bytes": 1454,
  "sha": "b0781e6743da2e110b593b8ae4ebbda91d357fef4da42c01704d4498b06ae8b0",
  "repo_slug": "agent-ix/pytest-summary",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/okf_agent_ix_pytest_summary_spec_index_md_88d08b04/readme"
}