-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (38 loc) · 1.62 KB
/
ci-core.yml
File metadata and controls
48 lines (38 loc) · 1.62 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
48
name: CI Core
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
core:
runs-on: ubuntu-24.04
name: Core tests (Python ${{ matrix.python-version }})
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "${{ matrix.python-version }}"
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41
with:
version: "0.10.10"
- name: Install runtime + dev dependencies (CPU-only torch)
run: uv sync --group dev
env:
UV_TORCH_BACKEND: cpu
- name: Lint core package
run: uv run ruff check src/kiji_inspector/__init__.py src/kiji_inspector/core/ tests/test_runtime_api.py tests/test_core_sae.py tests/test_core_registry.py
- name: Format check core package
run: uv run ruff format --check src/kiji_inspector/__init__.py src/kiji_inspector/core/ tests/test_runtime_api.py tests/test_core_sae.py tests/test_core_registry.py
- name: Run core package tests
run: uv run pytest tests/test_runtime_api.py tests/test_core_sae.py tests/test_core_registry.py
- name: Base install smoke
run: uv run python -c "from kiji_inspector import SAE; from kiji_inspector.core.sae_core import JumpReLUSAE"