mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-05 18:22:41 +00:00
test simple cli
This commit is contained in:
parent
58ed2d224a
commit
74c6c9e582
1 changed files with 34 additions and 8 deletions
42
.github/workflows/publish-to-test-pypi.yml
vendored
42
.github/workflows/publish-to-test-pypi.yml
vendored
|
@ -1,14 +1,15 @@
|
||||||
name: Publish Python 🐍 distribution 📦 to TestPyPI
|
name: Publish Python 🐍 distribution 📦 to TestPyPI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Keep manual trigger
|
push
|
||||||
inputs:
|
# workflow_dispatch: # Keep manual trigger
|
||||||
version:
|
# inputs:
|
||||||
description: 'Version number (e.g. 0.0.63.dev20250111)'
|
# version:
|
||||||
required: true
|
# description: 'Version number (e.g. 0.0.63.dev20250111)'
|
||||||
type: string
|
# required: true
|
||||||
schedule:
|
# type: string
|
||||||
- cron: "0 0 * * *" # Run every day at midnight
|
# schedule:
|
||||||
|
# - cron: "0 0 * * *" # Run every day at midnight
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger-client-and-models-build:
|
trigger-client-and-models-build:
|
||||||
|
@ -106,3 +107,28 @@ jobs:
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
repository-url: https://test.pypi.org/legacy/
|
repository-url: https://test.pypi.org/legacy/
|
||||||
|
|
||||||
|
test-published-package:
|
||||||
|
name: Test published package
|
||||||
|
needs:
|
||||||
|
- publish-to-testpypi
|
||||||
|
- trigger-client-and-models-build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install the package
|
||||||
|
run: |
|
||||||
|
sleep 10
|
||||||
|
pip install --index-url https://pypi.org/simple/ --extra-index-url https://test.pypi.org/simple/ llama-stack==${{ needs.trigger-client-and-models-build.outputs.version }}
|
||||||
|
- name: Test the package versions
|
||||||
|
run: |
|
||||||
|
pip list | grep llama_
|
||||||
|
- name: Test CLI commands
|
||||||
|
run: |
|
||||||
|
llama model list
|
||||||
|
llama stack build --list-templates
|
||||||
|
llama model prompt-format -m Llama3.2-11B-Vision-Instruct
|
||||||
|
llama stack list-apis
|
||||||
|
llama stack list-providers inference
|
||||||
|
llama stack list-providers telemetry
|
||||||
|
|
||||||
|
# TODO: add trigger for integration test workflow & docker builds
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue