Skip to content

Commit 590ce9d

Browse files
authored
Use uv more in CI workflows (#20968)
## Summary More dogfooding of our own tools. I didn't touch the build-binaries workflow (it's scary) or the publish-docs workflow (which doesn't run on PRs) or the ruff-lsp job in the ci.yaml workflow (ruff-lsp is deprecated; it doesn't seem worth making changes there). ## Test Plan CI on this PR
1 parent 0b8de72 commit 590ce9d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,11 @@ jobs:
529529
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
530530
with:
531531
persist-credentials: false
532-
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
532+
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
533533
with:
534534
# TODO: figure out why `ruff-ecosystem` crashes on Python 3.14
535535
python-version: "3.13"
536+
activate-environment: true
536537

537538
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
538539
name: Download comparison Ruff binary
@@ -551,7 +552,7 @@ jobs:
551552

552553
- name: Install ruff-ecosystem
553554
run: |
554-
pip install ./python/ruff-ecosystem
555+
uv pip install ./python/ruff-ecosystem
555556
556557
- name: Run `ruff check` stable ecosystem check
557558
if: ${{ needs.determine_changes.outputs.linter == 'true' }}
@@ -787,9 +788,6 @@ jobs:
787788
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
788789
with:
789790
persist-credentials: false
790-
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
791-
with:
792-
python-version: "3.13"
793791
- uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
794792
- name: "Add SSH key"
795793
if: ${{ env.MKDOCS_INSIDERS_SSH_KEY_EXISTS == 'true' }}
@@ -800,12 +798,15 @@ jobs:
800798
run: rustup show
801799
- name: Install uv
802800
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
801+
with:
802+
python-version: 3.13
803+
activate-environment: true
803804
- name: "Install Insiders dependencies"
804805
if: ${{ env.MKDOCS_INSIDERS_SSH_KEY_EXISTS == 'true' }}
805-
run: uv pip install -r docs/requirements-insiders.txt --system
806+
run: uv pip install -r docs/requirements-insiders.txt
806807
- name: "Install dependencies"
807808
if: ${{ env.MKDOCS_INSIDERS_SSH_KEY_EXISTS != 'true' }}
808-
run: uv pip install -r docs/requirements.txt --system
809+
run: uv pip install -r docs/requirements.txt
809810
- name: "Update README File"
810811
run: python scripts/transform_readme.py --target mkdocs
811812
- name: "Generate docs"

0 commit comments

Comments
 (0)