Skip to content

Commit bd0fdf7

Browse files
committed
!squash
1 parent 343ce2b commit bd0fdf7

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/docs.yml

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

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

4244
- name: Set up Python ${{ matrix.python-version }}
4345
if: env.PUBLISH == 'true'
44-
uses: actions/setup-python@v5
45-
with:
46-
python-version: ${{ matrix.python-version }}
47-
cache: 'poetry'
46+
run: uv python install ${{ matrix.python-version }}
4847

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

5352
- name: Print python versions
5453
if: env.PUBLISH == 'true'
5554
run: |
5655
python -V
57-
poetry run python -V
56+
uv run python -V
5857
5958
- name: Build documentation
6059
if: env.PUBLISH == 'true'
6160
run: |
62-
pushd docs; make SPHINXBUILD='poetry run sphinx-build' html; popd
61+
pushd docs; make SPHINXBUILD='uv run sphinx-build' html; popd
6362
6463
- name: Push documentation to S3
6564
if: env.PUBLISH == 'true'

0 commit comments

Comments
 (0)