Skip to content

Add required result_id argument in task queue loop. #5241

Add required result_id argument in task queue loop.

Add required result_id argument in task queue loop. #5241

name: type checking
on:
push:
branches:
- main
pull_request:
paths:
- yt/**/*.py
- pyproject.toml
- .github/workflows/type-checking.yaml
workflow_dispatch:
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
name: type check
timeout-minutes: 60
concurrency:
# auto-cancel any in-progress job *on the same branch*
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
# run with oldest supported python version
# so that we always get compatible versions of
# core dependencies at type-check time
python-version: '3.10'
prune-cache: false
cache-suffix: typecheck
- name: Build
run: uv sync --group typecheck
- name: Run mypy
run: uv run --no-sync mypy yt