feat(tck): implement createContract JSON-RPC method (#2611) #35
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: Secondary PR Check - TCK Unit Test | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| paths: | |
| - "src/**" | |
| - "tck/**" | |
| - "tests/tck/**" | |
| pull_request: | |
| paths: | |
| - "src/**" | |
| - "tck/**" | |
| - "tests/tck/**" | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: tck-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tck-unit-test: | |
| name: TCK Unit Test | |
| runs-on: hl-sdk-py-lin-md | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.14" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --frozen --all-groups --all-packages --all-extras | |
| - name: Generate Proto Files | |
| run: uv run generate_proto.py | |
| - name: Run unit tests | |
| run: | | |
| uv run pytest tests/tck -v |