Skip to content

Commit 02c99b0

Browse files
committed
Wrangle with the new workflow
1 parent b268338 commit 02c99b0

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/appinspect.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on: [ pull_request ]
33

44
env:
55
PYTHON_VERSION: 3.13
6+
MOCK_APP_PATH: ./tests/system/test_apps/generating_app
67

78
jobs:
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

0 commit comments

Comments
 (0)