Skip to content

Commit 8b0c6d8

Browse files
committed
Prepare test run for pre-release
1 parent 79248e7 commit 8b0c6d8

1 file changed

Lines changed: 25 additions & 10 deletions

File tree

.github/workflows/pre-release.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
name: 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

99
env:
1010
PYTHON_VERSION: 3.13
11+
MOCK_APP_PATH: ./tests/system/test_apps/generating_app
1112

1213
jobs:
1314
publish-pre-release:
@@ -31,7 +32,21 @@ jobs:
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/

0 commit comments

Comments
 (0)