@@ -21,14 +21,16 @@ jobs:
21
21
steps :
22
22
- uses : actions/checkout@v4
23
23
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
26
28
27
29
- 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
32
34
33
35
- name : Setup tmux build cache for tmux ${{ matrix.tmux-version }}
34
36
id : tmux-build-cache
@@ -52,22 +54,19 @@ jobs:
52
54
cd ~
53
55
tmux -V
54
56
55
- - name : Install python dependencies
56
- run : poetry install --with=test,coverage,lint
57
-
58
57
- name : Lint with ruff check .
59
- run : poetry run ruff check .
58
+ run : uv run ruff check .
60
59
61
60
- name : Format with ruff
62
- run : poetry run ruff format . --check
61
+ run : uv run ruff format . --check
63
62
64
63
- name : Lint with mypy
65
- run : poetry run mypy .
64
+ run : uv run mypy .
66
65
67
66
- name : Print python versions
68
67
run : |
69
68
python -V
70
- poetry run python -V
69
+ uv run python -V
71
70
72
71
- name : Test with pytest
73
72
continue-on-error : ${{ matrix.tmux-version == 'master' }}
76
75
export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
77
76
ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin
78
77
tmux -V
79
- poetry run py.test --cov=./ --cov-report=xml
78
+ uv run py.test --cov=./ --cov-report=xml
80
79
81
80
- uses : codecov/codecov-action@v5
82
81
with :
@@ -94,21 +93,21 @@ jobs:
94
93
steps :
95
94
- uses : actions/checkout@v4
96
95
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
99
100
100
101
- 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
105
106
106
107
- name : Build package
107
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
108
- run : poetry build
108
+ run : uv build
109
109
110
110
- name : Publish package
111
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
112
111
uses : pypa/gh-action-pypi-publish@release/v1
113
112
with :
114
113
user : __token__
0 commit comments