Skip to content

[v10] Add Proxy Pallet Support #773

[v10] Add Proxy Pallet Support

[v10] Add Proxy Pallet Support #773

name: Unit and integration tests checker
permissions:
contents: read
on:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
unit-and-integration-tests:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 5
matrix:
python-version: ${{ fromJson(vars.SDK_SUPPORTED_PYTHON_VERSIONS) }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: false
- name: Cache uv and .venv
uses: actions/cache@v4
with:
path: |
~/.cache/uv
.venv
key: uv-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
restore-keys: |
uv-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-
- name: Sync dev deps (idempotent; fast on cache hit)
run: uv sync --extra dev --dev
- name: Unit tests
timeout-minutes: 20
env:
PYTHONUNBUFFERED: "1"
run: |
uv run pytest -n 2 tests/unit_tests/ --reruns 3
- name: Integration tests
timeout-minutes: 20
env:
PYTHONUNBUFFERED: "1"
run: |
uv run pytest -n 2 tests/integration_tests/ --reruns 3