Skip to content

chore(deps-dev): bump ruff from 0.15.16 to 0.15.17 in /packages/python #105

chore(deps-dev): bump ruff from 0.15.16 to 0.15.17 in /packages/python

chore(deps-dev): bump ruff from 0.15.16 to 0.15.17 in /packages/python #105

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
typescript:
name: TypeScript (vp check + test)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: voidzero-dev/setup-vp@v1
with:
cache: true
- run: vp check
- run: vp test --passWithNoTests
python:
name: Python ${{ matrix.python-version }} (ruff + mypy + pytest)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Tracks https://devguide.python.org/versions/ — every Python receiving
# upstream support that satisfies pyproject `requires-python = ">=3.12"`.
python-version: ["3.12", "3.13", "3.14"]
defaults:
run:
working-directory: packages/python
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: true
# Pinned binary so tests/test_context_real_nats.py can drive a real
# broker. Without this the protocol-level test self-skips, which would
# silently downgrade coverage in CI.
- name: Install nats-server
run: |
NATS_VERSION=v2.14.0
curl -fsSL "https://github.com/nats-io/nats-server/releases/download/${NATS_VERSION}/nats-server-${NATS_VERSION}-linux-amd64.tar.gz" \
| tar -xz -C /tmp
sudo install -m 0755 "/tmp/nats-server-${NATS_VERSION}-linux-amd64/nats-server" /usr/local/bin/nats-server
nats-server --version
- run: uv sync --all-extras --dev
- run: uv run ruff check .
- run: uv run ruff format --check .
- run: uv run mypy
- run: uv run pytest
package-smoke:
name: Package smoke test (build + install wheel)
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/python
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: true
# Build sdist + wheel from the source tree, then install the wheel into a
# fresh venv. Catches packaging metadata, py.typed inclusion, and
# missing-package bugs that editable installs miss.
- run: uv build
- name: Install built wheel and import public API
run: |
python -m venv /tmp/smoke
/tmp/smoke/bin/pip install --upgrade pip
/tmp/smoke/bin/pip install dist/*.whl
/tmp/smoke/bin/python - <<'PY'
import friday_agent_sdk
from friday_agent_sdk import (
__version__,
agent, run, ok, err,
AgentContext, AgentInput, AgentResult, AgentExtras,
ArtifactRef, InputArtifactRef, OutlineRef, OkResult, ErrResult,
Http, HttpError, HttpResponse,
Llm, LlmError, LlmResponse,
SessionData, SkillDefinition, StreamEmitter,
ToolCallError, ToolDefinition, Tools,
parse_input, parse_operation,
)
assert __version__, "friday_agent_sdk.__version__ should be set"
print(f"OK: friday-agent-sdk {__version__} installs and imports cleanly")
PY