-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (37 loc) · 1.22 KB
/
typecheck.yml
File metadata and controls
46 lines (37 loc) · 1.22 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
name: Type Checking
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
type-check:
runs-on: ubuntu-latest
# Only test on one Python version for type checking to speed up CI
# Type issues are generally consistent across Python versions
strategy:
matrix:
python-version: ["3.11"] # Use 3.11 as it has good type checking support
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 fastwoe; print('FastWoe installed')"
uv run python -c "import ty; print('ty installed')"
- name: Run CI checks (format, lint, typecheck)
run: |
make ci-check
- name: Run strict type checking (informational)
if: always() # Run even if previous step fails
run: |
make typecheck-strict || echo "ℹ️ Strict mode found expected pandas/numpy type issues"
continue-on-error: true