Skip to content

ci: restore strict parity step now that synalinks deps resolve #13

ci: restore strict parity step now that synalinks deps resolve

ci: restore strict parity step now that synalinks deps resolve #13

Workflow file for this run

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
# synalinks requires Python >=3.11; synaops itself still supports 3.10,
# so we build/import it on 3.10 but only run the parity suite on 3.11+.
if: matrix.python-version != '3.10'
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'))"