File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ on: [ pull_request ]
33
44env :
55 PYTHON_VERSION : 3.13
6+ MOCK_APP_PATH : ./tests/system/test_apps/generating_app
67
78jobs :
89 appinspect :
@@ -15,12 +16,13 @@ jobs:
1516 deps-group : lint
1617 - name : Install splunk-appinspect dependencies
1718 run : sudo apt-get install -y libmagic1
18- - name : Install splunk-appinspect
19- run : uv tool install --no-config splunk-appinspect
19+ - name : Install packages for the mock app
20+ run : |
21+ mkdir -p ${{ env.MOCK_APP_PATH }}/bin/lib
22+ pip install .[openai, anthropic] --target ${{ env.MOCK_APP_PATH }}/bin/lib
2023 - name : Copy splunklib to a test app and package it as a mock app
2124 run : |
22- mkdir -p tests/system/test_apps/generating_app/bin/lib
23- cp -r splunklib/ tests/system/test_apps/generating_app/bin/lib/
24- tar -czf mock_app.tgz -C tests/system/test_apps generating_app
25+ cd ${{ env.MOCK_APP_PATH }}
26+ tar --exclude="__pycache__" --exclude=".keep" -czf mock_app.tgz bin default metadata
2527 - name : Validate mock app with splunk-appinspect
26- run : splunk-appinspect inspect mock_app.tgz --included-tags cloud
28+ run : uvx splunk-appinspect inspect ./ mock_app.tgz --included-tags cloud
You can’t perform that action at this time.
0 commit comments