Add ruff and mbake to lint stage, add make lint, remove make.bat as…
#119
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: 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 into a mock app and package it | |
| 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 |