From defa1b05e4492458b0321b78ec655d29c5660d9f Mon Sep 17 00:00:00 2001 From: Srinivasa Consultants <78673153+dinakarjs@users.noreply.github.com> Date: Thu, 3 Dec 2026 08:49:26 +0530 Subject: [PATCH] ci(wcm): exercise documented setup in an isolated environment Reapply the workflow-only follow-up after merged #434. Signed-off-by: Srinivasa Consultants <78673153+dinakarjs@users.noreply.github.com> --- .github/workflows/examples-ci.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/examples-ci.yml b/.github/workflows/examples-ci.yml index 54a513b..dea13c3 100644 --- a/.github/workflows/examples-ci.yml +++ b/.github/workflows/examples-ci.yml @@ -237,21 +237,20 @@ jobs: with: python-version: "3.11" - - name: Install the WCM SDK from PyPI - run: python -m pip install -r requirements.txt + - name: Install the documented offline-demo dependencies + # Isolate the README install from packages preinstalled on the runner. + # The SDK stays resolved from PyPI to check the published release. + run: | + python -m venv .venv + .venv/bin/python -m pip install -r requirements-model-signing.txt + .venv/bin/python -m pip check # One runner, discovered rather than listed, so a new demo is covered the - # day it lands. The list lived in this file and in nobody else's reach, - # which is why the SDK repository could not run these before cutting a - # release. It now calls the same script; see run_demos.py. - - name: Install the model-signing extra the provenance demo needs - # The runner is pinned; the SDK these demos exercise stays resolved - # from PyPI, which is what makes them a check on the release. + # day it lands. The SDK repository calls the same script before release. + - name: Install the pinned test harness run: | - python -m pip install --require-hashes -r ../requirements/wcm-harness.txt - # model-signing needs pyOpenSSL and certifi; sigstore no longer - # pulls either in transitively (sigstore/model-transparency#685). - python -m pip install "weight-custody-manifest[model-signing]>=0.27.0" pyOpenSSL certifi + .venv/bin/python -m pip install --require-hashes -r ../requirements/wcm-harness.txt + .venv/bin/python -m pip check - name: Run every offline demo and the unit tests - run: python run_demos.py + run: .venv/bin/python run_demos.py