Skip to content

Commit bfad229

Browse files
committed
!squash more
1 parent 093e223 commit bfad229

File tree

2 files changed

+26
-23
lines changed

2 files changed

+26
-23
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,30 @@ jobs:
3333
if: steps.changes.outputs.docs == 'true' || steps.changes.outputs.root_docs == 'true' || steps.changes.outputs.python_files == 'true'
3434
run: echo "PUBLISH=$(echo true)" >> $GITHUB_ENV
3535

36-
- name: Install poetry
36+
- name: Install uv
37+
uses: astral-sh/setup-uv@v3
3738
if: env.PUBLISH == 'true'
38-
run: pipx install "poetry==1.8.4"
39+
with:
40+
enable-cache: true
3941

4042
- name: Set up Python ${{ matrix.python-version }}
41-
uses: actions/setup-python@v5
4243
if: env.PUBLISH == 'true'
43-
with:
44-
python-version: ${{ matrix.python-version }}
45-
cache: 'poetry'
44+
run: uv python install ${{ matrix.python-version }}
4645

47-
- name: Install dependencies [w/ docs]
46+
- name: Install dependencies
4847
if: env.PUBLISH == 'true'
49-
run: poetry install --with=docs,lint
48+
run: uv sync --all-extras --dev
5049

5150
- name: Print python versions
5251
if: env.PUBLISH == 'true'
5352
run: |
5453
python -V
55-
poetry run python -V
54+
uv run python -V
5655
5756
- name: Build documentation
5857
if: env.PUBLISH == 'true'
5958
run: |
60-
pushd docs; make SPHINXBUILD='poetry run sphinx-build' html; popd
59+
pushd docs; make SPHINXBUILD='uv run sphinx-build' html; popd
6160
6261
- name: Push documentation to S3
6362
if: env.PUBLISH == 'true'

.github/workflows/tests.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -94,18 +96,20 @@ jobs:
9496
steps:
9597
- uses: actions/checkout@v4
9698

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
99103

100104
- 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
105109

106110
- name: Build package
107111
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
108-
run: poetry build
112+
run: uv build
109113

110114
- name: Publish package
111115
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)