Merge pull request #9 from CKwin26/codex/make-independent-validation-… #24
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: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| python: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install Research Forge | |
| run: python -m pip install -e ".[dev,external-research,paper-evidence,scientific-validation]" | |
| - name: Prepare clean-room replay image | |
| run: docker pull python:3.12-slim | |
| - name: Best-effort warm maintained RO-Crate validator cache | |
| # The upstream warmer fetches contexts for every installed profile and | |
| # returns non-zero when any unrelated profile endpoint is transiently | |
| # unavailable. The following offline validator tests remain the | |
| # authoritative check for the exact 1.1/WfRun contexts we use. | |
| run: rocrate-validator cache warm || true | |
| - name: Test | |
| run: python -m pytest -p no:cacheprovider | |
| - name: Compile retrieval modules | |
| run: python -m compileall -q research_forge/retrieval | |
| frontend: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| defaults: | |
| run: | |
| working-directory: research-forge-ui | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: pnpm | |
| cache-dependency-path: research-forge-ui/pnpm-lock.yaml | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run build |