Skip to content

Merge pull request #67 from trustyai-explainability/tarilabs-patch-1 #142

Merge pull request #67 from trustyai-explainability/tarilabs-patch-1

Merge pull request #67 from trustyai-explainability/tarilabs-patch-1 #142

Workflow file for this run

name: Tier 1 - unit tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: "Test with ${{ matrix.test-name }}"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: "3.12"
llama-stack-source: "stable"
test-name: "llama-stack stable (pyproject.toml)"
install-cmd: "python -m pip install -e \".[test]\""
- python-version: "3.12"
llama-stack-source: "main"
test-name: "llama-stack main branch (upstream)"
install-cmd: "python -m pip install git+https://github.com/llamastack/llama-stack.git@main && python -m pip install -e \".[test]\""
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
${{ matrix.install-cmd }}
- name: Run tests
run: |
python -m pytest tests/unit/ -v
- name: Display test environment info
run: |
echo "Testing with: ${{ matrix.test-name }}"
python -c "import llama_stack; print(f'llama-stack location: {llama_stack.__file__}')"
python -m pip show llama-stack