@@ -15,14 +15,16 @@ jobs:
15
15
steps :
16
16
- uses : actions/checkout@v4
17
17
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
20
22
21
23
- 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
26
28
27
29
- name : Setup tmux build cache for tmux ${{ matrix.tmux-version }}
28
30
id : tmux-build-cache
@@ -46,23 +48,19 @@ jobs:
46
48
cd ~
47
49
tmux -V
48
50
49
- - name : Install python dependencies
50
- run : |
51
- poetry install --with=test,coverage,lint
52
-
53
51
- name : Lint with ruff check
54
- run : poetry run ruff check .
52
+ run : uv run ruff check .
55
53
56
54
- name : Format with ruff format
57
- run : poetry run ruff format . --check
55
+ run : uv run ruff format . --check
58
56
59
57
- name : Lint with mypy
60
- run : poetry run mypy .
58
+ run : uv run mypy .
61
59
62
60
- name : Print python versions
63
61
run : |
64
62
python -V
65
- poetry run python -V
63
+ uv run python -V
66
64
67
65
- name : Test with pytest
68
66
continue-on-error : ${{ matrix.tmux-version == 'master' }}
71
69
export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
72
70
ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin
73
71
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
75
73
env :
76
74
COV_CORE_SOURCE : .
77
75
COV_CORE_CONFIG : .coveragerc
@@ -92,18 +90,20 @@ jobs:
92
90
steps :
93
91
- uses : actions/checkout@v4
94
92
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
97
97
98
98
- 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
103
103
104
104
- name : Build package
105
105
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
106
- run : poetry build
106
+ run : uv build
107
107
108
108
- name : Publish package
109
109
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
0 commit comments