File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish pre-release to Test PyPI
2- on :
3- push :
4- branches :
5- - develop
6- - release/2.x
7- workflow_dispatch :
2+ on : [ push ]
3+ # push:
4+ # branches:
5+ # - develop
6+ # - release/2.x
7+ # workflow_dispatch:
88
99env :
1010 PYTHON_VERSION : 3.13
11+ MOCK_APP_PATH : ./tests/system/test_apps/generating_app
1112
1213jobs :
1314 publish-pre-release :
3132 uv version --frozen "${BASE}.dev${RUN_NUMBER}+g${SHA}"
3233 - name : Build packages for distribution
3334 run : uv build
34- - name : Publish packages to Test PyPI
35- uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
36- with :
37- repository-url : https://test.pypi.org/legacy/
35+
36+ - name : Install splunk-appinspect dependencies
37+ run : sudo apt-get install -y libmagic1
38+ - name : Install packages for the mock app
39+ run : |
40+ mkdir -p ${{ env.MOCK_APP_PATH }}/bin/lib
41+ uv pip install ".[openai, anthropic]" --target ${{ env.MOCK_APP_PATH }}/bin/lib
42+ - name : Copy splunklib to a test app and package it as a mock app
43+ run : |
44+ cd ${{ env.MOCK_APP_PATH }}
45+ tar -czf mock_app.tgz --exclude="__pycache__" bin default metadata
46+ - name : Validate mock app with splunk-appinspect
47+ run : uvx splunk-appinspect inspect ${{ env.MOCK_APP_PATH }}/mock_app.tgz
48+ --included-tags cloud
49+ # - name: Publish packages to Test PyPI
50+ # uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
51+ # with:
52+ # repository-url: https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments