This repository was archived by the owner on Jul 10, 2026. It is now read-only.
Fix/e2e tests for stake lock owner alpha #1343
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: Flake8 and Mypy - linters check | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, edited] | |
| jobs: | |
| read-python-versions: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| python-versions: ${{ steps.read-versions.outputs.versions }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - id: read-versions | |
| run: | | |
| versions=$(cat .github/supported-python-versions.json) | |
| echo "versions=$versions" >> $GITHUB_OUTPUT | |
| linters: | |
| needs: read-python-versions | |
| if: github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 5 | |
| matrix: | |
| python-version: ${{ fromJson(needs.read-python-versions.outputs.python-versions) }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.0.0 | |
| with: | |
| enable-cache: false | |
| - name: Cache uv and .venv | |
| uses: actions/cache@v5 | |
| 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 | |
| run: uv sync --extra dev --dev | |
| - name: Flake8 | |
| run: uv run flake8 bittensor/ --count | |
| - name: Mypy | |
| run: uv run mypy --ignore-missing-imports bittensor/ |