* ci : remove tag from build-self-hosted.yml * ci : slim -> self-hosted * ci : prevent heavy CPU jobs from running on fast runners * ci : prevent cmake pkg to run on dedicated fast runners * ci : try to bump 3.11 -> 3.13 * ci : move lint back to 3.11 * ci : back to 3.11 * ci : add comment about UI jobs * ci : move python requirements check to CPU runners this job is a bit slow for a dedicated "fast" runner * ci : add self-hosted ui workflow * ci : fix UI naming * tmp to check if arm64 fast is compatible with all jobs * revert last commit
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: Python Type-Check
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/python-type-check.yml'
|
|
- 'ty.toml'
|
|
- '**.py'
|
|
- '**/requirements*.txt'
|
|
# - 'pyrightconfig.json'
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/python-type-check.yml'
|
|
- 'ty.toml'
|
|
- '**.py'
|
|
- '**/requirements*.txt'
|
|
# - 'pyrightconfig.json'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
python-type-check:
|
|
runs-on: [self-hosted, fast]
|
|
name: python type-check
|
|
steps:
|
|
- name: Check out source repository
|
|
uses: actions/checkout@v6
|
|
- name: Set up Python environment
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.11"
|
|
pip-install: -r requirements/requirements-all.txt ty==0.0.35
|
|
# - name: Type-check with Pyright
|
|
# uses: jakebailey/pyright-action@v2
|
|
# with:
|
|
# version: 1.1.382
|
|
# level: warning
|
|
# warnings: true
|
|
- name: Type-check with ty
|
|
run: |
|
|
ty check --output-format=github
|