removed more legacy files #3
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: Continuous Integration | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| name: "🧪 Build & Run Safety Suite" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: "🦀 Set up Rust" | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| override: true | |
| components: clippy, rustfmt | |
| - name: "🐍 Set up Python" | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: "🧱 Install dependencies" | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install maturin pytest black ruff mypy | |
| python -m pip install -e .[dev,training] | |
| - name: "⚙️ Build Rust extension (develop mode)" | |
| run: | | |
| maturin develop --release | |
| - name: "🧹 Lint and format check" | |
| run: | | |
| cargo fmt -- --check | |
| cargo clippy -- -D warnings | |
| black --check python/ | |
| ruff check python/ | |
| mypy python/ | |
| - name: "🧪 Run Safety Test Suite" | |
| env: | |
| PYTHONPATH: ./python | |
| run: | | |
| echo "Running pytest safety checks..." | |
| pytest -v python/tests/test_safety.py | |
| - name: "✅ Summary" | |
| if: success() | |
| run: echo "✅ All safety and CI checks passed." | |
| - name: "❌ Failure notice" | |
| if: failure() | |
| run: echo "❌ Safety suite failed. Blocking release." | |
| test: | |
| runs-on: ubuntu-latest | |
| name: "🧪 Python Tests (uv)" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v2 | |
| - name: Install dependencies | |
| run: uv sync --group dev --group training | |
| - name: Run tests | |
| run: uv run pytest -q python |