Skip to content

docs: Add comprehensive README and CI/CD #35

docs: Add comprehensive README and CI/CD

docs: Add comprehensive README and CI/CD #35

Workflow file for this run

name: Tests & Build

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 44, Col: 9): There's not enough info to determine what you meant. Add one of these properties: cancel, run, shell, uses, wait, wait-all, with, working-directory, (Line: 49, Col: 9): 'run' is already defined
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
rust-build:
name: Rust Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
crates
core
python
- name: Build Rust
run: cargo build --release --all-features
- name: Test Rust
run: cargo test --release --all-features
python-tests:
name: Python Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential python3-dev
run: cd python && pip install -e ".[dev]"
- name: Run pytest
run: if [ -d "python/tests" ]; then cd python && pytest tests/ -v --tb=short; else echo "No Python tests found"; fi