Upgrade Trivy action version in security workflow #141
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |