mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 17:29:01 +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
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Keep manual trigger
|
||||
inputs:
|
||||
version:
|
||||
description: 'Version number (e.g. 0.0.63.dev20250111)'
|
||||
required: true
|
||||
type: string
|
||||
schedule:
|
||||
- cron: "0 0 * * *" # Run every day at midnight
|
||||
push
|
||||
# workflow_dispatch: # Keep manual trigger
|
||||
# inputs:
|
||||
# version:
|
||||
# description: 'Version number (e.g. 0.0.63.dev20250111)'
|
||||
# required: true
|
||||
# type: string
|
||||
# schedule:
|
||||
# - cron: "0 0 * * *" # Run every day at midnight
|
||||
|
||||
jobs:
|
||||
trigger-client-and-models-build:
|
||||
|
@ -106,3 +107,28 @@ jobs:
|
|||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
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