File tree Expand file tree Collapse file tree 2 files changed +26
-23
lines changed Expand file tree Collapse file tree 2 files changed +26
-23
lines changed Original file line number Diff line number Diff line change @@ -33,31 +33,30 @@ jobs:
33
33
if : steps.changes.outputs.docs == 'true' || steps.changes.outputs.root_docs == 'true' || steps.changes.outputs.python_files == 'true'
34
34
run : echo "PUBLISH=$(echo true)" >> $GITHUB_ENV
35
35
36
- - name : Install poetry
36
+ - name : Install uv
37
+ uses : astral-sh/setup-uv@v3
37
38
if : env.PUBLISH == 'true'
38
- run : pipx install "poetry==1.8.4"
39
+ with :
40
+ enable-cache : true
39
41
40
42
- name : Set up Python ${{ matrix.python-version }}
41
- uses : actions/setup-python@v5
42
43
if : env.PUBLISH == 'true'
43
- with :
44
- python-version : ${{ matrix.python-version }}
45
- cache : ' poetry'
44
+ run : uv python install ${{ matrix.python-version }}
46
45
47
- - name : Install dependencies [w/ docs]
46
+ - name : Install dependencies
48
47
if : env.PUBLISH == 'true'
49
- run : poetry install --with=docs,lint
48
+ run : uv sync --all-extras --dev
50
49
51
50
- name : Print python versions
52
51
if : env.PUBLISH == 'true'
53
52
run : |
54
53
python -V
55
- poetry run python -V
54
+ uv run python -V
56
55
57
56
- name : Build documentation
58
57
if : env.PUBLISH == 'true'
59
58
run : |
60
- pushd docs; make SPHINXBUILD='poetry run sphinx-build' html; popd
59
+ pushd docs; make SPHINXBUILD='uv run sphinx-build' html; popd
61
60
62
61
- name : Push documentation to S3
63
62
if : env.PUBLISH == 'true'
Original file line number Diff line number Diff line change @@ -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
@@ -94,18 +96,20 @@ jobs:
94
96
steps :
95
97
- uses : actions/checkout@v4
96
98
97
- - name : Install poetry
98
- run : pipx install "poetry==1.8.4"
99
+ - name : Install uv
100
+ uses : astral-sh/setup-uv@v3
101
+ with :
102
+ enable-cache : true
99
103
100
104
- name : Set up Python ${{ matrix.python-version }}
101
- uses : actions/setup- python@v5
102
- with :
103
- python-version : ${{ matrix.python-version }}
104
- cache : ' poetry '
105
+ run : uv python install ${{ matrix.python-version }}
106
+
107
+ - name : Install dependencies
108
+ run : uv sync --all-extras --dev
105
109
106
110
- name : Build package
107
111
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
108
- run : poetry build
112
+ run : uv build
109
113
110
114
- name : Publish package
111
115
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
You can’t perform that action at this time.
0 commit comments