Repository navigation
docs(WO57-78): campaign WO set #838
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: test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| pytest: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install (dev extras only — train/export need GPU + system deps) | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev,export]" | |
| - name: Run pytest | |
| run: PYTHONPATH=src python -m pytest tests/ -v | |
| - name: Lint (ruff) | |
| run: ruff check src tests | |
| - name: Type check (mypy) | |
| run: mypy src || true # non-blocking until types are fully clean | |
| smoke-cli: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - run: pip install -e ".[dev,export]" | |
| - name: CLI smoke test (isxml) | |
| run: | | |
| PYTHONPATH=src isxml --help | |
| PYTHONPATH=src isxml validate --help | |
| export-fixture: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v5 | |
| with: { python-version: "3.11" } | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install torch==2.12.1 transformers==5.14.1 | |
| pip install -e ".[dev,train,export]" | |
| - name: IMF export + parity gate fixture tests (torch vs ORT) | |
| run: PYTHONPATH=src python -m pytest tests/test_imf_export.py tests/test_imf_parity.py -v | |
| contracts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v5 | |
| with: { python-version: "3.11" } | |
| - run: pip install -e ".[dev]" | |
| - name: Corpus/recipe contract validation (structure fails; license blocks report, publish-time enforced) | |
| run: PYTHONPATH=src python -m pipeline.cli validate | |
| python-runtime: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v5 | |
| with: { python-version: "3.11" } | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install -e "./runtime[dev]" | |
| - name: interscript-models runtime tests (tiny-graph zips, golden e2e) | |
| run: python -m pytest runtime/tests -v | |
| metrics-provenance: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v5 | |
| with: { python-version: "3.11" } | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev]" | |
| - name: WO10 — metadata metrics must match RESULTS.md sources | |
| run: PYTHONPATH=src python -m imf metrics |