|
1 | | -name: Python SDK CI |
2 | | -on: [push, workflow_dispatch] |
| 1 | +# name: Python SDK CI |
| 2 | +# on: [push, workflow_dispatch] |
3 | 3 |
|
4 | | -concurrency: |
5 | | - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
6 | | - cancel-in-progress: true |
| 4 | +# concurrency: |
| 5 | +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 6 | +# cancel-in-progress: true |
7 | 7 |
|
8 | | -jobs: |
9 | | - test-stage: |
10 | | - runs-on: ${{ matrix.os }} |
11 | | - strategy: |
12 | | - matrix: |
13 | | - os: [ubuntu-latest] |
14 | | - python-version: [3.13] |
15 | | - splunk-version: [latest] |
16 | | - steps: |
17 | | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd |
18 | | - - uses: ./.github/actions/setup-sdk-environment |
19 | | - with: |
20 | | - python-version: ${{ matrix.python-version }} |
21 | | - deps-group: test |
22 | | - - name: Download Splunk MCP Server App |
23 | | - run: uv run ./scripts/download_splunk_mcp_server_app.py |
24 | | - env: |
25 | | - SPLUNKBASE_USERNAME: ${{ secrets.SPLUNKBASE_USERNAME }} |
26 | | - SPLUNKBASE_PASSWORD: ${{ secrets.SPLUNKBASE_PASSWORD }} |
27 | | - - name: Launch Splunk Docker instance |
28 | | - run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d |
29 | | - - name: Set up .env |
30 | | - run: cp .env.template .env |
31 | | - - name: Write internal AI secrets to .env |
32 | | - run: | |
33 | | - echo "internal_ai_app_key=$INTERNAL_AI_APP_KEY" >> .env |
34 | | - echo "internal_ai_client_id=$INTERNAL_AI_CLIENT_ID" >> .env |
35 | | - echo "internal_ai_client_secret=$INTERNAL_AI_CLIENT_SECRET" >> .env |
36 | | - echo "internal_ai_token_url=$INTERNAL_AI_TOKEN_URL" >> .env |
37 | | - echo "internal_ai_base_url=$INTERNAL_AI_BASE_URL" >> .env |
38 | | - env: |
39 | | - INTERNAL_AI_APP_KEY: ${{ secrets.INTERNAL_AI_APP_KEY }} |
40 | | - INTERNAL_AI_CLIENT_ID: ${{ secrets.INTERNAL_AI_CLIENT_ID }} |
41 | | - INTERNAL_AI_CLIENT_SECRET: ${{ secrets.INTERNAL_AI_CLIENT_SECRET }} |
42 | | - INTERNAL_AI_TOKEN_URL: ${{ secrets.INTERNAL_AI_TOKEN_URL }} |
43 | | - INTERNAL_AI_BASE_URL: ${{ secrets.INTERNAL_AI_BASE_URL }} |
44 | | - - name: Restore pytest cache |
45 | | - if: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop' }} |
46 | | - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae |
47 | | - with: |
48 | | - path: .pytest_cache |
49 | | - key: pytest-cache-${{ runner.os }}-py${{ matrix.python-version }}-${{ github.ref_name }}-${{ github.sha }} |
50 | | - restore-keys: | |
51 | | - pytest-cache-${{ runner.os }}-py${{ matrix.python-version }}-${{ github.ref_name }}- |
52 | | - - name: Run unit tests |
53 | | - run: make test-unit |
54 | | - - name: Run entire test suite |
55 | | - run: make test-integration |
| 8 | +# jobs: |
| 9 | +# test-stage: |
| 10 | +# runs-on: ${{ matrix.os }} |
| 11 | +# strategy: |
| 12 | +# matrix: |
| 13 | +# os: [ubuntu-latest] |
| 14 | +# python-version: [3.13] |
| 15 | +# splunk-version: [latest] |
| 16 | +# steps: |
| 17 | +# - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd |
| 18 | +# - uses: ./.github/actions/setup-sdk-environment |
| 19 | +# with: |
| 20 | +# python-version: ${{ matrix.python-version }} |
| 21 | +# deps-group: test |
| 22 | +# - name: Download Splunk MCP Server App |
| 23 | +# run: uv run ./scripts/download_splunk_mcp_server_app.py |
| 24 | +# env: |
| 25 | +# SPLUNKBASE_USERNAME: ${{ secrets.SPLUNKBASE_USERNAME }} |
| 26 | +# SPLUNKBASE_PASSWORD: ${{ secrets.SPLUNKBASE_PASSWORD }} |
| 27 | +# - name: Launch Splunk Docker instance |
| 28 | +# run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d |
| 29 | +# - name: Set up .env |
| 30 | +# run: cp .env.template .env |
| 31 | +# - name: Write internal AI secrets to .env |
| 32 | +# run: | |
| 33 | +# echo "internal_ai_app_key=$INTERNAL_AI_APP_KEY" >> .env |
| 34 | +# echo "internal_ai_client_id=$INTERNAL_AI_CLIENT_ID" >> .env |
| 35 | +# echo "internal_ai_client_secret=$INTERNAL_AI_CLIENT_SECRET" >> .env |
| 36 | +# echo "internal_ai_token_url=$INTERNAL_AI_TOKEN_URL" >> .env |
| 37 | +# echo "internal_ai_base_url=$INTERNAL_AI_BASE_URL" >> .env |
| 38 | +# env: |
| 39 | +# INTERNAL_AI_APP_KEY: ${{ secrets.INTERNAL_AI_APP_KEY }} |
| 40 | +# INTERNAL_AI_CLIENT_ID: ${{ secrets.INTERNAL_AI_CLIENT_ID }} |
| 41 | +# INTERNAL_AI_CLIENT_SECRET: ${{ secrets.INTERNAL_AI_CLIENT_SECRET }} |
| 42 | +# INTERNAL_AI_TOKEN_URL: ${{ secrets.INTERNAL_AI_TOKEN_URL }} |
| 43 | +# INTERNAL_AI_BASE_URL: ${{ secrets.INTERNAL_AI_BASE_URL }} |
| 44 | +# - name: Restore pytest cache |
| 45 | +# if: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop' }} |
| 46 | +# uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae |
| 47 | +# with: |
| 48 | +# path: .pytest_cache |
| 49 | +# key: pytest-cache-${{ runner.os }}-py${{ matrix.python-version }}-${{ github.ref_name }}-${{ github.sha }} |
| 50 | +# restore-keys: | |
| 51 | +# pytest-cache-${{ runner.os }}-py${{ matrix.python-version }}-${{ github.ref_name }}- |
| 52 | +# - name: Run unit tests |
| 53 | +# run: make test-unit |
| 54 | +# - name: Run entire test suite |
| 55 | +# run: make test-integration |
0 commit comments