Skip to content

chore(deps): bump the uv group across 1 directory with 2 updates (#2312) #11

chore(deps): bump the uv group across 1 directory with 2 updates (#2312)

chore(deps): bump the uv group across 1 directory with 2 updates (#2312) #11

name: Secondary PR Check - Dependency Compatibility
on:
push:
paths:
- "pyproject.toml"
pull_request:
paths:
- "pyproject.toml"
workflow_dispatch:
permissions:
contents: read
jobs:
min-deps:
runs-on: ${{ (github.repository_owner != 'hiero-ledger' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork)) && 'ubuntu-latest' || 'hl-sdk-py-lin-md' }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.14"]
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0 # ensure full git history for SCM-based versioning
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Create virtual environment
run: uv venv
- name: Install minimum dependencies and tooling
run: |
# Minimum-deps compatibility check: use a non-editable install for stable packaging behavior.
uv sync --all-extras --resolution=lowest-direct --no-editable
- name: Show resolved core dependency versions
run: |
echo "Resolved core dependency versions:"
PATTERN='^(
protobuf|
grpcio|
cryptography|
requests|
pycryptodome|
eth-abi|
python-dotenv|
eth-keys|
rlp|
grpcio-tools|
ruff|
mypy|
typing-extensions|
pytest
)\s'
uv pip list | grep -E "$(echo "$PATTERN" | tr -d '\n ')"
- name: Generate Proto Files
run: |
uv run --resolution=lowest-direct python generate_proto.py
- name: Run unit tests (min deps)
run: |
uv run --resolution=lowest-direct pytest tests/unit -v