Visitar URL original
ci(tests): Run apt-get update before apt install · tmux-python/tmuxp@fa1bd94 · GitHub
Skip to content

Commit fa1bd94

Browse files
committed
ci(tests): Run apt-get update before apt install
why: Since 2026-10-03 every tests job fails before pytest starts. The runner image's apt index still names libevent-2.1-7t64 2.1.12-stable-9ubuntu2.1, which the Ubuntu mirror no longer serves (404 Not Found, sometimes 502 Proxy Error), so `sudo apt install libevent-2.1-7` exits 100. Re-running the jobs fails the same way. Refreshing the index first resolves the version the mirror currently carries. The libtmux ports (libtmux-go, -rs, -ts and others) already run `apt-get update` before the same installs. what: - Run `sudo apt-get update` before the tmux build dependencies install and before the runtime libevent install in tests.yml
1 parent 22b8e8a commit fa1bd94

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
- name: Build tmux ${{ matrix.tmux-version }}
4949
if: steps.tmux-build-cache.outputs.cache-hit != 'true'
5050
run: |
51+
sudo apt-get update
5152
sudo apt install libevent-dev libncurses5-dev libtinfo-dev libutempter-dev bison
5253
mkdir ~/tmux-builds
5354
mkdir ~/tmux-src
@@ -77,6 +78,7 @@ jobs:
7778
- name: Test with pytest
7879
continue-on-error: ${{ matrix.tmux-version == 'master' }}
7980
run: |
81+
sudo apt-get update
8082
sudo apt install libevent-2.1-7
8183
export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
8284
ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin

0 commit comments

Comments
 (0)