Bump to 3.0.1a0 for proper bookkeeping, bump dependency on ourselves … #1603
Workflow file for this run
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: Python SDK CI | |
| on: [push, workflow_dispatch] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.13] | |
| splunk-version: [latest] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/setup-sdk-environment | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| deps-group: test | |
| - name: Download Splunk MCP Server App | |
| env: | |
| SPLUNKBASE_USERNAME: ${{ secrets.SPLUNKBASE_USERNAME }} | |
| SPLUNKBASE_PASSWORD: ${{ secrets.SPLUNKBASE_PASSWORD }} | |
| run: uv run ./scripts/download_splunk_mcp_server_app.py | |
| - name: Launch Splunk Docker instance | |
| run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d | |
| - name: Set up .env | |
| run: cp .env.template .env | |
| - name: Write internal AI secrets to .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 }} | |
| 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 | |
| - name: Restore pytest cache | |
| if: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop' }} | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae | |
| 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 }}- | |
| - name: Run unit tests | |
| run: make test-unit | |
| - name: Run integration/system tests | |
| run: make test-integration |