File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Subproject commit 9d742350d330ffa9e09c5deef6cbdd3bd0e0f366
Original file line number Diff line number Diff line change 1+ Subproject commit c64a592e2517560433039fd9a6681bb44d1e8cb6
Original file line number Diff line number Diff line change 77 - name : Install AppInspect dependencies
88 shell : bash
99 run : sudo apt-get install -y libmagic1
10- - name : Install the SDK and its dependencies into the mock app
10+ - name : Install the SDK and its dependencies into a mock app
1111 shell : bash
1212 run : |
1313 mkdir -p ./tests/system/test_apps/generating_app/bin/lib
Original file line number Diff line number Diff line change 1616
1717jobs :
1818 appinspect :
19+ name : Run AppInspect
1920 runs-on : ubuntu-latest
2021 steps :
2122 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
Original file line number Diff line number Diff line change 1717
1818jobs :
1919 build-distributables :
20+ name : Build release distributables
2021 # Why building is separate from publishing:
2122 # https://github.com/pypa/gh-action-pypi-publish/issues/217#issuecomment-1965727093
2223 runs-on : ubuntu-latest
6869 path : docs/_build/splunk-sdk-python-docs.zip
6970
7071 publish-pre-release :
72+ name : Publish pre-release to Test PyPI
7173 if : startsWith(github.ref, 'refs/tags/') == false
7274 needs : build-distributables
7375 runs-on : ubuntu-latest
8890 repository-url : https://test.pypi.org/legacy/
8991
9092 publish-release :
93+ name : Publish release to PyPI
9194 if : startsWith(github.ref, 'refs/tags/') == true
9295 needs : build-distributables
9396 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ permissions: {}
1313
1414jobs :
1515 lint :
16+ name : Run linters
1617 runs-on : ubuntu-latest
1718 steps :
1819 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ permissions: {}
1313
1414jobs :
1515 test :
16+ name : Run test suite
1617 runs-on : ubuntu-latest
1718 strategy :
1819 matrix :
5556 uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae
5657 with :
5758 path : .pytest_cache
58- key : pytest-cache-${{ runner.os }}-py${{ matrix.python-version }}-${{ github.ref_name }}-${{
59- github.sha }}
60- restore-keys : |
61- pytest-cache-${{ runner.os }}-py${{ matrix.python-version }}-${{ github.ref_name }}-
59+ key : pytest-cache-${{ runner.os }}-py${{ matrix.python-version }}-${{ github.ref_name }}-${{ github.sha }}
60+ restore-keys : pytest-cache-${{ runner.os }}-py${{ matrix.python-version }}-${{ github.ref_name }}-
6261 - name : Run unit tests
6362 run : make test-unit
6463 - name : Run integration/system tests
Original file line number Diff line number Diff line change 22
33# # VIRTUALENV MANAGEMENT
44
5- # https://docs.astral.sh/uv/reference/cli/#uv-run--upgrade
5+ # https://docs.astral.sh/uv/reference/cli/#uv-sync
66# --no-config skips Splunk's internal PyPI mirror
77UV_SYNC_CMD := uv sync --no-config
8+ # https://docs.astral.sh/uv/reference/cli/#uv-run
9+ UV_RUN_CMD := uv run
10+ # https://docs.zizmor.sh/usage
11+ ZIZMOR_CMD := $(UV_RUN_CMD ) zizmor --pedantic --strict-collection
812
913.PHONY : install
1014install :
@@ -20,13 +24,12 @@ upgrade:
2024ci-install :
2125 $(UV_SYNC_CMD ) --frozen --group $(SDK_DEPS_GROUP )
2226
23- UV_RUN_CMD := uv run
2427.PHONY : lint
2528lint : lint-python lint-gh-actions # TODO: Add mbake
2629
2730.PHONY : lint-gh-actions
2831lint-gh-actions :
29- $(UV_RUN_CMD ) zizmor --pedantic --collect=all --strict-collection .
32+ $(ZIZMOR_CMD ) ./.github
3033
3134.PHONY : lint-python
3235lint-python :
@@ -39,7 +42,7 @@ ci-lint: ci-lint-python ci-lint-gh-actions # TODO: Add mbake
3942
4043.PHONY : ci-lint-gh-actions
4144ci-lint-gh-actions :
42- $(UV_RUN_CMD ) zizmor --pedantic --collect=all --strict-collection --fix .
45+ $(ZIZMOR_CMD ) ./.github
4346
4447.PHONY : ci-lint-python
4548ci-lint-python :
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ lint = [
5757 " basedpyright>=1.39.4" ,
5858 " ruff>=0.15.12" ,
5959 " mbake>=1.4.6" ,
60- " zizmor==1.24.1 " ,
60+ " zizmor==1.25.2 " ,
6161]
6262dev = [
6363 " rich>=15.0.0" ,
You can’t perform that action at this time.
0 commit comments