-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Python: Enable Ollama integration tests in CI and rename report #5454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
101f501
733bfb9
dc64d63
9316f2c
f6f8747
a6e0ab5
3745265
386e08e
e2eba0b
2e6b999
072123a
3ab3370
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -278,6 +278,8 @@ jobs: | |||||||||||||||||||||||||||
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | ||||||||||||||||||||||||||||
| ANTHROPIC_CHAT_MODEL: ${{ vars.ANTHROPIC_CHAT_MODEL_ID }} | ||||||||||||||||||||||||||||
| LOCAL_MCP_URL: ${{ vars.LOCAL_MCP__URL }} | ||||||||||||||||||||||||||||
| OLLAMA_MODEL: qwen2.5:1.5b | ||||||||||||||||||||||||||||
| OLLAMA_EMBEDDING_MODEL: nomic-embed-text | ||||||||||||||||||||||||||||
| defaults: | ||||||||||||||||||||||||||||
| run: | ||||||||||||||||||||||||||||
| working-directory: python | ||||||||||||||||||||||||||||
|
|
@@ -289,6 +291,37 @@ jobs: | |||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||
| python-version: ${{ env.UV_PYTHON }} | ||||||||||||||||||||||||||||
| os: ${{ runner.os }} | ||||||||||||||||||||||||||||
| - name: Install Ollama | ||||||||||||||||||||||||||||
| run: curl -fsSL https://ollama.com/install.sh | sh | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
| run: curl -fsSL https://ollama.com/install.sh | sh | |
| run: | | |
| set -euo pipefail | |
| OLLAMA_VERSION="v0.5.7" | |
| OLLAMA_ARCHIVE="ollama-linux-amd64.tgz" | |
| OLLAMA_BASE_URL="https://github.com/ollama/ollama/releases/download/${OLLAMA_VERSION}" | |
| curl -fsSLo "${OLLAMA_ARCHIVE}" "${OLLAMA_BASE_URL}/${OLLAMA_ARCHIVE}" | |
| curl -fsSLo sha256sums.txt "${OLLAMA_BASE_URL}/sha256sums.txt" | |
| grep " ${OLLAMA_ARCHIVE}$" sha256sums.txt | sha256sum -c - | |
| sudo tar -C /usr/local -xzf "${OLLAMA_ARCHIVE}" | |
| rm -f "${OLLAMA_ARCHIVE}" sha256sums.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Ollama installer is executed via
curl ... | sh, which is an unpinned remote script and introduces a supply-chain risk in CI. Consider pinning to a specific Ollama release (download a versioned artifact) and verifying its checksum/signature before installation, or use a package-manager-based install when available.