-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (63 loc) · 2.18 KB
/
Copy pathci.yml
File metadata and controls
80 lines (63 loc) · 2.18 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: cargo test
run: cargo test --release
- name: Install synaops + test deps
run: |
python -m pip install --upgrade pip
pip install pytest pytest-benchmark
pip install .
- name: Parity tests
# Parity pulls in synalinks -> litellm. synaops itself supports the
# whole 3.10-3.14 matrix (built/imported above), but the reference
# stack constrains where the parity suite can run:
# - synalinks requires Python >=3.11 (excludes 3.10)
# - litellm declares Requires-Python <3.14 (excludes 3.14)
# so the parity suite runs on 3.11-3.13. Revisit the 3.14 skip once
# litellm raises its upper Python bound.
if: matrix.python-version != '3.10' && matrix.python-version != '3.14'
run: |
pip install git+https://github.com/SynaLinks/synalinks.git
pytest bench/test_parity.py -v
test-cross:
name: smoke ${{ matrix.os }} / py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: cargo test
run: cargo test --release
- name: Install synaops
run: |
python -m pip install --upgrade pip
pip install .
- name: Import smoke test
run: |
python -c "import synaops; print(synaops.prefix_json({'a': 1}, 'pre'))"