-
Notifications
You must be signed in to change notification settings - Fork 383
29 lines (27 loc) · 1.09 KB
/
appinspect.yml
File metadata and controls
29 lines (27 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Validate SDK with Splunk AppInspect
on: [ push, workflow_dispatch ]
env:
PYTHON_VERSION: 3.13
MOCK_APP_PATH: ./tests/system/test_apps/generating_app
jobs:
appinspect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: ./.github/actions/setup-sdk-environment
with:
python-version: ${{ env.PYTHON_VERSION }}
deps-group: lint
- name: Install splunk-appinspect dependencies
run: sudo apt-get install -y libmagic1
- name: Install packages for the mock app
run: |
mkdir -p ${{ env.MOCK_APP_PATH }}/bin/lib
uv pip install ".[openai, anthropic]" --target ${{ env.MOCK_APP_PATH }}/bin/lib
- name: Copy splunklib to a test app and package it as a mock app
run: |
cd ${{ env.MOCK_APP_PATH }}
tar -czf mock_app.tgz --exclude="__pycache__" bin default metadata
- name: Validate mock app with splunk-appinspect
run: uvx splunk-appinspect inspect ${{ env.MOCK_APP_PATH }}/mock_app.tgz
--included-tags cloud