mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-21 03:59:42 +00:00
Goals: * remove the need of a custom tool to install a collection of python packages AKA `llama stack build` * use the power of 'uv', which was designed to manage dependencies * `llama stack build` can "probably" go away and be replaced with uv Howto, with the pyproject, you can install an Ollama distribution in a virtual env like so: ``` uv venv --python 3.10 ollama-distro source ollama-distro/bin/activate uv sync --extra ollama llama stack run llama_stack/templates/ollama/run.yaml ``` Caveats: * external provider, we could still use a build file or add the known external providers to the pyproject? * growth of the uv.lock? We create a requirements.txt for convenience as some users are most familiar with this format than looking at pyproject. Signed-off-by: Sébastien Han <seb@redhat.com>
68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
name: Update ReadTheDocs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
branch:
|
|
description: 'RTD version to update'
|
|
required: false
|
|
default: 'latest'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'docs/**'
|
|
- 'pyproject.toml'
|
|
- '.github/workflows/update-readthedocs.yml'
|
|
tags:
|
|
- '*'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'docs/**'
|
|
- 'pyproject.toml'
|
|
- '.github/workflows/update-readthedocs.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
update-readthedocs:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
TOKEN: ${{ secrets.READTHEDOCS_TOKEN }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: Install dependencies
|
|
uses: ./.github/actions/setup-runner
|
|
|
|
- name: Build HTML
|
|
run: |
|
|
cd docs
|
|
uv run --group docs make html
|
|
|
|
- name: Trigger ReadTheDocs build
|
|
if: github.event_name != 'pull_request'
|
|
run: |
|
|
if [ -z "$TOKEN" ]; then
|
|
echo "READTHEDOCS_TOKEN is not set"
|
|
exit 1
|
|
fi
|
|
|
|
response=$(curl -X POST \
|
|
-H "Content-Type: application/json" \
|
|
-d "{
|
|
\"token\": \"$TOKEN\",
|
|
\"version\": \"$GITHUB_REF_NAME\"
|
|
}" \
|
|
https://readthedocs.org/api/v2/webhook/llama-stack/289768/)
|
|
|
|
echo "Response: $response"
|
|
if [ $(echo $response | jq -r '.build_triggered') != 'true' ]; then
|
|
echo "Failed to trigger ReadTheDocs build"
|
|
exit 1
|
|
fi
|