--- id: tox-gh-actions version: "3.5.0" license: MIT license_treatment: permissive maintenance: active --- # tox-gh-actions — Seamless integration of tox into GitHub Actions License: permissive · Maintenance: active · Downloads: 631.1K/mo ## What it is and what it does tox-gh-actions is a tox plugin designed to streamline testing workflows on GitHub Actions by automatically mapping Python versions to the appropriate tox environments. When you run tox in a GitHub Actions job, the plugin reads a `[gh-actions]` configuration section from your tox.ini, setup.cfg, or pyproject.toml and selects which test environments to run based on the Python version (or other factors like environment variables) in that job. This eliminates the need to manually specify which environments to test on each Python version. The plugin also provides utilities like GitHub Actions log grouping to organize test output. It supports multiple Python implementations including CPython, PyPy, and experimental Pyston support, and handles pre-release and free-threaded Python builds. The plugin respects explicit environment overrides via the `-e` flag or `TOXENV` variable, so you can still run specific environments when needed. Use it for: - Test your package on multiple Python versions with each job automatically running only its corresponding tox environment. - Run different test suites per Python version (e.g., py312 runs unit tests, py314 runs both unit and type-checking). - Test across multiple platforms and Python versions simultaneously by using environment variables to select platform-specific tox factors. - Reduce boilerplate in CI workflows by letting the plugin handle environment selection instead of hardcoding it in workflow YAML. - Support PyPy and other Python implementations in your test matrix with automatic environment mapping. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A tox plugin that automatically detects and runs the appropriate test environments on GitHub Actions based on the Python version in each job, with built-in log grouping support. Yes. This is a lightweight, actively maintained plugin that solves a real friction point in GitHub Actions CI: mapping matrix jobs to tox environments. It has no security vulnerabilities, permissive licensing, low install friction, and a clear use case for anyone already using tox in a GitHub Actions workflow. Install it if you run tox on GitHub Actions with multiple Python versions. ## Install pip install tox-gh-actions uv add tox-gh-actions poetry add tox-gh-actions ## Installing tox-gh-actions Before you install: Low friction: a single pure-Python dependency on tox with no compiled requirements. Actively maintained as of 2026-04-13 with 256 repository stars and a stable release cadence. License in practice: MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal attribution requirements. Quickstart: pip install tox tox-gh-actions Add to tox.ini: [gh-actions] python = 3.10: py310 3.12: py312 Run: tox Requires tox to be installed first; intended for use within GitHub Actions workflows, not local development. Verify before relying: - Whether the plugin works with tox versions older than the current release or has a minimum tox version requirement. - Performance impact of log grouping on large test suites or workflows with many parallel jobs. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 631.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags tox github actions integration, ci matrix python version testing, automated tox environment selection, github actions test matrix, tox ci plugin, python version conditional testing, github actions workflow tox, ci-cd, github-actions, testing-automation [View on SkillFed](https://skillfed.io/packages/tox-gh-actions) · [View on PyPI](https://pypi.org/project/tox-gh-actions/)