forked from volcengine/OpenViking
-
Notifications
You must be signed in to change notification settings - Fork 1
86 lines (73 loc) · 2.37 KB
/
_test_lite.yml
File metadata and controls
86 lines (73 loc) · 2.37 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: 12. _Test Suite (Lite)
on:
workflow_call:
inputs:
os_json:
description: 'JSON string of OS to run on'
required: false
type: string
default: '["ubuntu-24.04"]'
python_json:
description: 'JSON string of Python versions'
required: false
type: string
default: '["3.10"]'
workflow_dispatch:
inputs:
os_json:
description: 'JSON string of OS to run on'
required: false
default: '["ubuntu-24.04"]'
python_json:
description: 'JSON string of Python versions'
required: false
default: '["3.10"]'
jobs:
test-lite:
name: Lite Test (${{ matrix.os }}, ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ${{ fromJson(inputs.os_json) }}
python-version: ${{ fromJson(inputs.python_json) }}
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install system dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y cmake build-essential
- name: Install system dependencies (macOS)
if: runner.os == 'macOS'
run: brew install cmake
- name: Install system dependencies (Windows)
if: runner.os == 'Windows'
run: |
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
choco install mingw
- name: Add MinGW to PATH (Windows)
if: runner.os == 'Windows'
run: echo "C:\mingw64\bin" >> $env:GITHUB_PATH
- name: Install Python dependencies
run: uv sync --frozen --extra test
- name: Install build dependencies
run: uv pip install setuptools setuptools_scm cmake wheel
- name: Build C++ extensions
run: uv run python setup.py build_ext --inplace
- name: Run Lite Integration Test (Quick Start)
shell: bash
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)
# Using bash shell ensures this works across platforms (including Windows via Git Bash)
uv run python tests/integration/test_quick_start_lite.py