Skip to content
Draft
Show file tree
Hide file tree
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
19 changes: 0 additions & 19 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,6 @@ jobs:
echo "Types: added, changed, fixed, removed, breaking"
exit 1
fi
BundleMetadataContract:
name: Validate bundle metadata contract
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
- name: Install core
run: uv pip install --system .
- name: Install bundle validation tooling
# Pin the test-only bundle contract dependency until policyengine-bundles
# has published releases suitable for ordinary dependency specifiers.
run: uv pip install --system "policyengine-bundles @ git+https://github.com/PolicyEngine/policyengine-bundles@8ae9f56fefcf89f69b8a7e3bc49928509c6207be"
- name: Validate runtime metadata contract
run: python -m pytest tests/core/test_build_metadata.py
Test:
strategy:
matrix:
Expand Down
8 changes: 0 additions & 8 deletions tests/core/test_build_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import importlib.metadata
import json

import pytest

from policyengine_core import get_runtime_metadata
from policyengine_core import build_metadata

Expand Down Expand Up @@ -52,9 +50,3 @@ def read_text(self, name):
"version": "1.2.3",
"git_sha": "abc123",
}


def test_runtime_metadata_uses_bundle_contract_when_available():
validation = pytest.importorskip("policyengine_bundles")

validation.load_component_metadata(get_runtime_metadata())
Loading