From 798df32f33c2a4a10a47436fd9dc3a69fa594097 Mon Sep 17 00:00:00 2001 From: Zxilly Date: Wed, 7 Oct 2026 02:34:26 -0700 Subject: [PATCH] ci: expose optional strict server artifact validation Added input for requiring the current server artifact in workflow calls. --- .github/workflows/test.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e9cadbf..434657c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,12 @@ on: pull_request: branches: [ master ] workflow_call: - + inputs: + require-current-artifact: + description: Require the server artifact from the current workflow run + required: false + type: boolean + default: false jobs: test: runs-on: ${{ matrix.os }} @@ -20,7 +25,9 @@ jobs: with: repository: 'ZNotify/py-sdk' - - uses: ZNotify/test-action@master + - uses: ZNotify/test-server-action@master + with: + require-current-artifact: ${{ inputs.require-current-artifact || false }} - name: Install poetry run: pipx install poetry @@ -39,3 +46,4 @@ jobs: - name: Test run: python -m poetry run python -m unittest discover +