This repository was archived by the owner on Jul 10, 2026. It is now read-only.
Cache inflight current chain-head requests #98
Workflow file for this run
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: Lint | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| types: [ opened, synchronize, reopened, ready_for_review ] | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| if: '!github.event.pull_request.draft' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Cache venv | |
| id: cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: venv | |
| key: v2-lint-${{ runner.os }}-${{ hashFiles('pyproject.toml') }} | |
| - name: Install deps | |
| if: ${{ steps.cache.outputs.cache-hit != 'true' }} | |
| run: | | |
| python -m venv venv | |
| source venv/bin/activate | |
| python -m pip install --upgrade pip | |
| python -m pip install uv | |
| python -m uv sync --extra dev --active | |
| - name: ruff check | |
| run: | | |
| source venv/bin/activate | |
| ruff check async_substrate_interface/ | |
| - name: ruff format | |
| run: | | |
| source venv/bin/activate | |
| ruff format --check async_substrate_interface/ | |
| - name: mypy | |
| run: | | |
| source venv/bin/activate | |
| mypy async_substrate_interface/ |