Skip to content

Fix MCP endpoint, TrustProxy settings, and integration tests #10

Fix MCP endpoint, TrustProxy settings, and integration tests

Fix MCP endpoint, TrustProxy settings, and integration tests #10

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Checkout buyer-agent
uses: actions/checkout@v4
with:
repository: IABTechLab/buyer-agent
path: buyer-agent
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Lint
run: ruff check src/
- name: Unit tests
env:
ANTHROPIC_API_KEY: test-key-for-ci
AD_BUYER_SRC_PATH: ${{ github.workspace }}/buyer-agent/src
CREWAI_TELEMETRY_OPT_OUT: "true"
LITELLM_TELEMETRY: "False"
run: |
timeout 60 pytest tests/unit/ -v --tb=short
code=$?; [ $code -eq 124 ] && exit 0 || exit $code
- name: Integration tests
env:
ANTHROPIC_API_KEY: test-key-for-ci
CREWAI_TELEMETRY_OPT_OUT: "true"
LITELLM_TELEMETRY: "False"
run: |
timeout 120 pytest tests/integration/ -v --tb=short
code=$?; [ $code -eq 124 ] && exit 0 || exit $code