This repository was archived by the owner on Jul 19, 2026. It is now read-only.
Anti corporate fork #112
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: -Dwarnings | |
| jobs: | |
| public-surface: | |
| name: Public Surface | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: python scripts/verify_public_surface.py | |
| test: | |
| name: Test (${{ matrix.toolchain }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| toolchain: [stable, nightly] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Stub phi-sim (optional local-only dependency) | |
| run: | | |
| mkdir -p ../phi-sim/src | |
| printf '[package]\nname = "phi-sim"\nversion = "0.5.0"\nedition = "2021"\n' > ../phi-sim/Cargo.toml | |
| echo '// stub' > ../phi-sim/src/lib.rs | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Test workspace | |
| run: cargo test --workspace | |
| - name: Test with temporal feature | |
| run: cargo test --workspace --features temporal | |
| clippy: | |
| name: Clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Stub phi-sim | |
| run: | | |
| mkdir -p ../phi-sim/src | |
| printf '[package]\nname = "phi-sim"\nversion = "0.5.0"\nedition = "2021"\n' > ../phi-sim/Cargo.toml | |
| echo '// stub' > ../phi-sim/src/lib.rs | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Clippy workspace | |
| run: cargo clippy --workspace -- -D warnings | |
| - name: Clippy with temporal | |
| run: cargo clippy --workspace --features temporal -- -D warnings | |
| fmt: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Stub phi-sim | |
| run: | | |
| mkdir -p ../phi-sim/src | |
| printf '[package]\nname = "phi-sim"\nversion = "0.5.0"\nedition = "2021"\n' > ../phi-sim/Cargo.toml | |
| echo '// stub' > ../phi-sim/src/lib.rs | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --all -- --check | |
| audit: | |
| name: Security Audit | |
| runs-on: ubuntu-latest | |
| permissions: | |
| checks: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Stub phi-sim | |
| run: | | |
| mkdir -p ../phi-sim/src | |
| printf '[package]\nname = "phi-sim"\nversion = "0.5.0"\nedition = "2021"\n' > ../phi-sim/Cargo.toml | |
| echo '// stub' > ../phi-sim/src/lib.rs | |
| - uses: rustsec/audit-check@v2.0.0 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| python: | |
| name: Python Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: pip install pytest numpy pyyaml | |
| - run: python -m compileall -q python demo | |
| - run: pytest -q | |
| python-ffi: | |
| name: Python FFI Smoke Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Stub phi-sim | |
| run: | | |
| mkdir -p ../phi-sim/src | |
| printf '[package]\nname = "phi-sim"\nversion = "0.5.0"\nedition = "2021"\n' > ../phi-sim/Cargo.toml | |
| echo '// stub' > ../phi-sim/src/lib.rs | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: pip install maturin pytest numpy | |
| - run: | | |
| maturin build --manifest-path crates/strix-python/Cargo.toml --release --out dist | |
| pip install dist/*.whl | |
| - run: pytest -q python/tests/test_ffi.py python/tests/test_auction_ffi.py python/tests/test_brain_ffi.py | |
| mypy: | |
| name: Python Type Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: pip install mypy | |
| - run: mypy python/strix/ --ignore-missing-imports --no-error-summary || true | |
| bench-compile: | |
| name: Benchmarks compile | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Stub phi-sim | |
| run: | | |
| mkdir -p ../phi-sim/src | |
| printf '[package]\nname = "phi-sim"\nversion = "0.5.0"\nedition = "2021"\n' > ../phi-sim/Cargo.toml | |
| echo '// stub' > ../phi-sim/src/lib.rs | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: | | |
| cargo bench -p strix-core --no-run | |
| cargo bench -p strix-auction --no-run | |
| cargo bench -p strix-swarm --no-run | |
| cargo bench -p strix-mesh --no-run |