-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (40 loc) · 1.21 KB
/
python_type_check.yaml
File metadata and controls
47 lines (40 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Type check
on:
workflow_call:
inputs:
python_versions:
description: List of Python versions to be used (stringified JSON array).
required: true
type: string
install_command:
description: Command to install Python dependencies.
required: false
type: string
default: uv run poe install-dev
type_check_command:
description: Command to run type check.
required: false
type: string
default: uv run poe type-check
jobs:
type_check:
name: Type check
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ${{ fromJSON(inputs.python_versions) }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Set up uv package manager
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: ${{ inputs.install_command }}
- name: Run type check
run: ${{ inputs.type_check_command }}