-
Notifications
You must be signed in to change notification settings - Fork 14
38 lines (30 loc) · 823 Bytes
/
typecheck.yml
File metadata and controls
38 lines (30 loc) · 823 Bytes
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
name: Type Checking
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
type-check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync --dev
- name: Verify installation
run: |
uv run python -c "import xbooster; print(f'xBooster v{xbooster.__version__}')"
uv run python -c "import mypy; print('mypy installed')"
- name: Run type checking
run: |
uv run mypy xbooster/ tests/