From d42281338e6b53a9cae8e4b286122b0ab149afb1 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Fri, 24 Apr 2026 14:21:18 -0700 Subject: [PATCH] ci: check out litellm-docs directly into docs/my-website Replaces the rm-and-symlink hack with a plain actions/checkout using path: docs/my-website. The previous approach failed on this branch because docs/my-website no longer exists in the repo (its parent docs/ directory was also removed), so ln -s had nowhere to create the symlink. Also adds the same checkout step to test-unit-documentation.yml, which was silently relying on docs/my-website existing in-tree for test_env_keys.py and test_router_settings.py. --- .github/workflows/test-code-quality.yml | 12 ++---------- .github/workflows/test-unit-documentation.yml | 7 +++++++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test-code-quality.yml b/.github/workflows/test-code-quality.yml index da0cbcd915..4f09857eb1 100644 --- a/.github/workflows/test-code-quality.yml +++ b/.github/workflows/test-code-quality.yml @@ -25,21 +25,13 @@ jobs: with: persist-credentials: false - - name: Checkout litellm-docs (for documentation_tests) + - name: Checkout litellm-docs into docs/my-website (for documentation_tests) uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 with: repository: BerriAI/litellm-docs - path: _litellm_docs_checkout + path: docs/my-website persist-credentials: false - - name: Wire up docs path expected by documentation_tests/* - run: | - # documentation_tests scripts read from docs/my-website/docs/... - # In litellm-docs the same files live at docs/... (repo root). - # Point docs/my-website -> litellm-docs checkout so the paths resolve. - rm -rf docs/my-website - ln -s ../_litellm_docs_checkout docs/my-website - - name: Set up Python uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: diff --git a/.github/workflows/test-unit-documentation.yml b/.github/workflows/test-unit-documentation.yml index 701c7687c5..b2a8640223 100644 --- a/.github/workflows/test-unit-documentation.yml +++ b/.github/workflows/test-unit-documentation.yml @@ -25,6 +25,13 @@ jobs: with: persist-credentials: false + - name: Checkout litellm-docs into docs/my-website (for documentation_tests) + uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + with: + repository: BerriAI/litellm-docs + path: docs/my-website + persist-credentials: false + - name: Set up Python uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: