Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions .github/workflows/examples-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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