feat(wcm): fourteen Weight Custody Manifest integrations (#142) #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: WCM integrations tests | |
| # The Weight Custody Manifest integrations, run against the published PyPI | |
| # release rather than a checkout. The WCM source repository is private, so PyPI | |
| # is the only thing a CI runner and an external contributor both see, and it is | |
| # what CONTRIBUTING rule 1 requires an integration to target. | |
| # | |
| # weight-custody-manifest is pinned to an exact version. These adapters depend on | |
| # what the published package actually exports: 0.26.0 ships no runtime_records | |
| # module, and several of them are written around that absence. A silent upgrade | |
| # should surface here as a failing pin, next to the reason, rather than as | |
| # behaviour nobody attributed to a dependency. | |
| on: | |
| pull_request: | |
| paths: | |
| - "integrations/wcm-*/**" | |
| - "noxfile.py" | |
| - ".github/workflows/wcm-integrations-tests.yml" | |
| push: | |
| branches: [main] | |
| paths: | |
| - "integrations/wcm-*/**" | |
| - "noxfile.py" | |
| - ".github/workflows/wcm-integrations-tests.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| unit: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install the published SDK and test-only extras | |
| run: | | |
| pip install \ | |
| "weight-custody-manifest==0.26.0" \ | |
| "agent-manifest>=0.11.1" \ | |
| "pytest>=8" \ | |
| pyyaml \ | |
| "opentelemetry-api>=1.25" | |
| - name: Run the integration tests | |
| run: python -m pytest integrations/wcm-* -q | |
| # A digest recipe implemented twice stops being one recipe silently, and | |
| # nothing in either module notices. wcm-triton asserts byte equality with | |
| # wcm-huggingface; this runs that check on its own so the failure is legible | |
| # in the checks list rather than buried in a suite of 344. | |
| digest-recipe-parity: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.12" | |
| - run: pip install "weight-custody-manifest==0.26.0" "pytest>=8" | |
| - run: | | |
| python -m pytest \ | |
| integrations/wcm-triton/test_wcm_triton.py \ | |
| -k artifact_digest_matches_the_hugging_face_gate -q |