From 0f7a3e58820f51dbeb50d16dfbd12549cb4dde25 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Mon, 31 Aug 2026 23:12:21 -0400 Subject: [PATCH] ci: optimize uv usage Update CI and pages workflows to use `uv` with `--no-build`, `--no-install-project`, and `--no-sync` where appropriate. This avoids unnecessary project builds/installs and redundant environment syncing during test and updater/builder steps, making workflow execution leaner and more predictable. --- .github/workflows/ci-tests.yml | 4 ++-- .github/workflows/update-pages.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index a22715b7b2..b7f40eb30f 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -44,7 +44,7 @@ jobs: - name: Install Python Dependencies env: UV_PYTHON: ${{ steps.setup-python.outputs.python-path }} - run: uv sync --locked + run: uv sync --locked --no-build --no-install-project - name: Install Node Dependencies shell: bash @@ -52,7 +52,7 @@ jobs: - name: Test with pytest id: pytest - run: uv run --locked pytest + run: uv run --locked --no-build --no-sync pytest - name: Test with Jest id: jest diff --git a/.github/workflows/update-pages.yml b/.github/workflows/update-pages.yml index ed2f5af623..900585a593 100644 --- a/.github/workflows/update-pages.yml +++ b/.github/workflows/update-pages.yml @@ -42,7 +42,7 @@ jobs: - name: Install Python dependencies env: UV_PYTHON: ${{ steps.setup-python.outputs.python-path }} - run: uv sync --locked --no-dev + run: uv sync --locked --no-build --no-dev --no-install-project - name: Restore generated data cache shell: bash @@ -68,14 +68,14 @@ jobs: PATREON_CAMPAIGN_ID: 6131567 READTHEDOCS_TOKEN: ${{ secrets.READTHEDOCS_TOKEN }} THREADING_EXCEPTION_HANDLER: "true" - run: uv run --locked --no-dev python -u -m src.updater + run: uv run --locked --no-build --no-dev --no-sync python -u -m src.updater - name: Cat log if: always() run: cat ./logs/updater.log - name: Build dashboard data - run: uv run --locked --no-dev python -u -m src.builder + run: uv run --locked --no-build --no-dev --no-sync python -u -m src.builder - name: Prepare Artifacts # uploading artifacts will fail if not zipped due to very large quantity of files shell: bash