Skip to content

feat: Add telemetry to SDK #12

feat: Add telemetry to SDK

feat: Add telemetry to SDK #12

Workflow file for this run

name: Python SDK CI
on: [push, workflow_dispatch]
jobs:
test-stage:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.13]
splunk-version: [latest]
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Launch Splunk Docker instance
run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install '.[openai]' --group test
- name: Set up .env
run: cp .env.template .env
- name: Write internal AI secrets to .env
run: |
echo "internal_ai_app_key=$INTERNAL_AI_APP_KEY" >> .env
echo "internal_ai_client_id=$INTERNAL_AI_CLIENT_ID" >> .env
echo "internal_ai_client_secret=$INTERNAL_AI_CLIENT_SECRET" >> .env
echo "internal_ai_token_url=$INTERNAL_AI_TOKEN_URL" >> .env
echo "internal_ai_base_url=$INTERNAL_AI_BASE_URL" >> .env
env:
INTERNAL_AI_APP_KEY: ${{ secrets.INTERNAL_AI_APP_KEY }}
INTERNAL_AI_CLIENT_ID: ${{ secrets.INTERNAL_AI_CLIENT_ID }}
INTERNAL_AI_CLIENT_SECRET: ${{ secrets.INTERNAL_AI_CLIENT_SECRET }}
INTERNAL_AI_TOKEN_URL: ${{ secrets.INTERNAL_AI_TOKEN_URL }}
INTERNAL_AI_BASE_URL: ${{ secrets.INTERNAL_AI_BASE_URL }}
- name: Restore pytest cache
uses: actions/cache@565629816435f6c0b50676926c9b05c254113c0c
with:
path: .pytest_cache
key: pytest-cache-${{ runner.os }}-py${{ matrix.python-version }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
pytest-cache-${{ runner.os }}-py${{ matrix.python-version }}-${{ github.ref_name }}-
pytest-cache-${{ runner.os }}-py${{ matrix.python-version }}-
- name: Run unit tests
run: make test-unit
- name: Run entire test suite
run: make test-integration