@@ -15,14 +15,16 @@ jobs:
1515 steps :
1616 - uses : actions/checkout@v4
1717
18- - name : Install poetry
19- run : pipx install "poetry==1.8.4"
18+ - name : Install uv
19+ uses : astral-sh/setup-uv@v3
20+ with :
21+ enable-cache : true
2022
2123 - name : Set up Python ${{ matrix.python-version }}
22- uses : actions/setup- python@v5
23- with :
24- python-version : ${{ matrix.python-version }}
25- cache : ' poetry '
24+ run : uv python install ${{ matrix.python-version }}
25+
26+ - name : Install dependencies
27+ run : uv sync --all-extras --dev
2628
2729 - name : Setup tmux build cache for tmux ${{ matrix.tmux-version }}
2830 id : tmux-build-cache
@@ -46,23 +48,19 @@ jobs:
4648 cd ~
4749 tmux -V
4850
49- - name : Install python dependencies
50- run : |
51- poetry install --with=test,coverage,lint
52-
5351 - name : Lint with ruff check
54- run : poetry run ruff check .
52+ run : uv run ruff check .
5553
5654 - name : Format with ruff format
57- run : poetry run ruff format . --check
55+ run : uv run ruff format . --check
5856
5957 - name : Lint with mypy
60- run : poetry run mypy .
58+ run : uv run mypy .
6159
6260 - name : Print python versions
6361 run : |
6462 python -V
65- poetry run python -V
63+ uv run python -V
6664
6765 - name : Test with pytest
6866 continue-on-error : ${{ matrix.tmux-version == 'master' }}
7169 export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
7270 ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin
7371 tmux -V
74- poetry run py.test --cov=./ --cov-append --cov-report=xml -n auto
72+ uv run py.test --cov=./ --cov-append --cov-report=xml -n auto
7573 env :
7674 COV_CORE_SOURCE : .
7775 COV_CORE_CONFIG : .coveragerc
@@ -92,18 +90,20 @@ jobs:
9290 steps :
9391 - uses : actions/checkout@v4
9492
95- - name : Install poetry
96- run : pipx install "poetry==1.8.4"
93+ - name : Install uv
94+ uses : astral-sh/setup-uv@v3
95+ with :
96+ enable-cache : true
9797
9898 - name : Set up Python ${{ matrix.python-version }}
99- uses : actions/setup- python@v5
100- with :
101- python-version : ${{ matrix.python-version }}
102- cache : ' poetry '
99+ run : uv python install ${{ matrix.python-version }}
100+
101+ - name : Install dependencies
102+ run : uv sync --all-extras --dev
103103
104104 - name : Build package
105105 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
106- run : poetry build
106+ run : uv build
107107
108108 - name : Publish package
109109 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
0 commit comments