Skip to content

Replace .github/scripts/tmux_build.py with libtmux/setup-tmux - #166

Open
tony wants to merge 1 commit into
mainfrom
ci/adopt-setup-tmux
Open

tony wants to merge 1 commit into
mainfrom
ci/adopt-setup-tmux

Conversation

@tony

@tony tony commented Dec 2, 2026

Copy link
Copy Markdown
Member

Closes #165

Summary

  • Replace the apt-get, .github/scripts/tmux_build.py, manual actions/cache, and native cache-recovery steps in .github/workflows/tests.yml with libtmux/setup-tmux@96c8f0d575eae62d1c3419ef919b69ecc43f3cac # v0.1.0
  • Remove .github/scripts/tmux_build.py, .github/scripts/test_tmux_build.py, and .github/tmux-releases.toml
  • Remove .github/scripts from the ruff steps in .github/workflows/tests.yml and [tool.ty.src] in pyproject.toml
  • Update .github/CONTRIBUTING.md to describe libtmux/setup-tmux in CI and point contributors to libtmux/mise-tmux (v0.1.0) for local multi-version tmux testing

Verification

  • grep -rn "tmux_build\|test_tmux_build\|\.github/scripts\|tmux-releases\.toml" --exclude-dir=.git --exclude=CHANGES . returned zero matches

Test plan

  • actionlint .github/workflows/tests.yml
  • uv run ruff check .
  • uv run ruff format . --check
  • uv run ty check
  • GitHub Actions tests workflow passes across the tmux version matrix

why: Replace the per-repo apt-get install, `.github/scripts/tmux_build.py`
source builder, and manual `actions/cache` wiring with the shared
`libtmux/setup-tmux` (`v0.1.0`) action, which serves verified prebuilt
binaries where published and skips apt-get on warm cache hits.

what:
- Replace the apt-get, `tmux_build.py`, cache restore/save, and native
  cache-recovery steps in `.github/workflows/tests.yml` with
  `libtmux/setup-tmux@96c8f0d575eae62d1c3419ef919b69ecc43f3cac # v0.1.0`
- Delete `.github/scripts/tmux_build.py`,
  `.github/scripts/test_tmux_build.py`, and `.github/tmux-releases.toml`
- Drop `.github/scripts` from ruff commands in `tests.yml` and from
  `[tool.ty.src]` in `pyproject.toml`
- Update `.github/CONTRIBUTING.md` for `libtmux/setup-tmux` in CI and
  `libtmux/mise-tmux` (`v0.1.0`) for local multi-version tmux testing
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.67%. Comparing base (4588031) to head (9ac4378).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #166   +/-   ##
=======================================
  Coverage   86.67%   86.67%           
=======================================
  Files          47       47           
  Lines        3970     3970           
  Branches      603      603           
=======================================
  Hits         3441     3441           
  Misses        367      367           
  Partials      162      162           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace .github/scripts/tmux_build.py with libtmux/setup-tmux

2 participants