Add README and fix Windows compatibility #2
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: [master, main] | |
| pull_request: | |
| branches: [master, main] | |
| jobs: | |
| rust-check: | |
| name: Rust Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo check --manifest-path crates/cellforge-engine/Cargo.toml | |
| - run: cargo test --manifest-path crates/cellforge-engine/Cargo.toml | |
| - run: cargo clippy --manifest-path crates/cellforge-engine/Cargo.toml -- -D warnings | |
| python-check: | |
| name: Python Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Install dependencies | |
| run: | | |
| pip install maturin>=1.7 | |
| maturin develop | |
| pip install -e ".[dev]" | |
| - name: Lint | |
| run: ruff check src/ tests/ | |
| - name: Test | |
| run: pytest tests/ -v --ignore=tests/test_cellforge/unit/test_engine_import.py | |
| frontend-check: | |
| name: Frontend Check | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| cache-dependency-path: frontend/package-lock.json | |
| - run: npm ci | |
| - run: npx tsc --noEmit | |
| - run: npm run build |