@@ -21,14 +21,16 @@ jobs:
2121 steps :
2222 - uses : actions/checkout@v4
2323
24- - name : Install poetry
25- run : pipx install "poetry==1.8.4"
24+ - name : Install uv
25+ uses : astral-sh/setup-uv@v3
26+ with :
27+ enable-cache : true
2628
2729 - name : Set up Python ${{ matrix.python-version }}
28- uses : actions/setup- python@v5
29- with :
30- python-version : ${{ matrix.python-version }}
31- cache : ' poetry '
30+ run : uv python install ${{ matrix.python-version }}
31+
32+ - name : Install dependencies
33+ run : uv sync --all-extras --dev
3234
3335 - name : Setup tmux build cache for tmux ${{ matrix.tmux-version }}
3436 id : tmux-build-cache
@@ -52,22 +54,19 @@ jobs:
5254 cd ~
5355 tmux -V
5456
55- - name : Install python dependencies
56- run : poetry install --with=test,coverage,lint
57-
5857 - name : Lint with ruff check .
59- run : poetry run ruff check .
58+ run : uv run ruff check .
6059
6160 - name : Format with ruff
62- run : poetry run ruff format . --check
61+ run : uv run ruff format . --check
6362
6463 - name : Lint with mypy
65- run : poetry run mypy .
64+ run : uv run mypy .
6665
6766 - name : Print python versions
6867 run : |
6968 python -V
70- poetry run python -V
69+ uv run python -V
7170
7271 - name : Test with pytest
7372 continue-on-error : ${{ matrix.tmux-version == 'master' }}
7675 export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
7776 ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin
7877 tmux -V
79- poetry run py.test --cov=./ --cov-report=xml
78+ uv run py.test --cov=./ --cov-report=xml
8079
8180 - uses : codecov/codecov-action@v5
8281 with :
@@ -94,21 +93,21 @@ jobs:
9493 steps :
9594 - uses : actions/checkout@v4
9695
97- - name : Install poetry
98- run : pipx install "poetry==1.8.4"
96+ - name : Install uv
97+ uses : astral-sh/setup-uv@v3
98+ with :
99+ enable-cache : true
99100
100101 - name : Set up Python ${{ matrix.python-version }}
101- uses : actions/setup- python@v5
102- with :
103- python-version : ${{ matrix.python-version }}
104- cache : ' poetry '
102+ run : uv python install ${{ matrix.python-version }}
103+
104+ - name : Install dependencies
105+ run : uv sync --all-extras --dev
105106
106107 - name : Build package
107- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
108- run : poetry build
108+ run : uv build
109109
110110 - name : Publish package
111- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
112111 uses : pypa/gh-action-pypi-publish@release/v1
113112 with :
114113 user : __token__
0 commit comments