| 1 | name: Validate |
| 2 | |
| 3 | on: |
| 4 | pull_request: |
| 5 | push: |
| 6 | branches: |
| 7 | - main |
| 8 | |
| 9 | permissions: {} |
| 10 | |
| 11 | jobs: |
| 12 | tests: |
| 13 | runs-on: ubuntu-latest |
| 14 | permissions: |
| 15 | contents: read |
| 16 | steps: |
| 17 | - name: Checkout |
| 18 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 19 | with: |
| 20 | persist-credentials: false |
| 21 | |
| 22 | - name: Build uploadable skill package |
| 23 | run: bash skills/last30days/scripts/build-skill.sh |
| 24 | |
| 25 | - name: Install uv |
| 26 | uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 |
| 27 | |
| 28 | - name: Set up Python |
| 29 | run: uv python install 3.12 |
| 30 | |
| 31 | - name: Run test suite |
| 32 | run: uv run pytest -n auto --dist worksteal --cov --cov-report=term-missing |
| 33 | |
| 34 | windows-process-tree: |
| 35 | runs-on: windows-latest |
| 36 | permissions: |
| 37 | contents: read |
| 38 | steps: |
| 39 | - name: Checkout |
| 40 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 41 | with: |
| 42 | persist-credentials: false |
| 43 | |
| 44 | - name: Install uv |
| 45 | uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 |
| 46 | |
| 47 | - name: Set up Python |
| 48 | run: uv python install 3.12 |
| 49 | |
| 50 | - name: Run Windows subprocess tests |
| 51 | env: |
| 52 | PYTHONPATH: ${{ github.workspace }}/skills/last30days/scripts |
| 53 | run: uv run python -m unittest tests.test_subproc -v |
| 54 | |
| 55 | - name: Check installed CLI discovery on Windows |
| 56 | run: uv run pytest tests/test_health_probe_taxonomy.py tests/test_windows_printing_press_path.py |
| 57 | |
| 58 | eval: |
| 59 | runs-on: ubuntu-latest |
| 60 | permissions: |
| 61 | contents: read |
| 62 | steps: |
| 63 | - name: Checkout |
| 64 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 65 | with: |
| 66 | persist-credentials: false |
| 67 | |
| 68 | - name: Install uv |
| 69 | uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 |
| 70 | |
| 71 | - name: Set up Python |
| 72 | run: uv python install 3.12 |
| 73 | |
| 74 | - name: Score research quality |
| 75 | run: uv run pytest tests/eval -x -s |
| 76 | |
| 77 | mcp-tests: |
| 78 | runs-on: ubuntu-latest |
| 79 | permissions: |
| 80 | contents: read |
| 81 | steps: |
| 82 | - name: Checkout |
| 83 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 84 | with: |
| 85 | persist-credentials: false |
| 86 | |
| 87 | - name: Set up Go |
| 88 | uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 |
| 89 | with: |
| 90 | go-version: "1.25.5" |
| 91 | cache-dependency-path: mcp/go.sum |
| 92 | |
| 93 | - name: Sync vendored engine |
| 94 | run: bash mcp/scripts/sync-engine.sh |
| 95 | |
| 96 | - name: Run MCP Go tests |
| 97 | run: go test -race ./... |
| 98 | working-directory: mcp |
| 99 | |
| 100 | rust-core: |
| 101 | runs-on: ubuntu-latest |
| 102 | permissions: |
| 103 | contents: read |
| 104 | steps: |
| 105 | - name: Checkout |
| 106 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 107 | with: |
| 108 | persist-credentials: false |
| 109 | |
| 110 | - name: Verify Rust formatting, clippy, tests, and docs |
| 111 | working-directory: rust |
| 112 | run: | |
| 113 | cargo fmt --check |
| 114 | cargo clippy --all-targets --all-features -- -D warnings |
| 115 | cargo test |
| 116 | RUSTDOCFLAGS="-D warnings" cargo doc --no-deps |
| 117 | cargo build --release |
| 118 | |
| 119 | - name: Install uv |
| 120 | uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 |
| 121 | |
| 122 | - name: Set up Python |
| 123 | run: uv python install 3.12 |
| 124 | |
| 125 | - name: Run full test suite and evals with Rust core active |
| 126 | env: |
| 127 | LAST30DAYS_ENGINE: rust |
| 128 | run: | |
| 129 | uv run python -c "import sys; sys.path.insert(0, 'skills/last30days/scripts'); from lib import rust_accel; assert rust_accel.engine_mode() == 'rust' and rust_accel.is_available(), 'Rust core binary not active'" |
| 130 | uv run pytest -n auto --dist worksteal |
| 131 | uv run pytest tests/eval -x |
| 132 |