release: fas-g2p-1.0 + ara-diac-small spec #67
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@v4 | |
| - 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@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - run: pip install -e ".[dev,export]" | |
| - name: CLI smoke test | |
| run: | | |
| PYTHONPATH=src python -m src.cli list | |
| test "$(PYTHONPATH=src python -m src.cli list | jq 'length')" -ge 3 | |
| export-fixture: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - 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 | |
| python-runtime: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: { python-version: "3.11" } | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install -e "./runtime[dev]" | |
| - name: interscript-ml runtime tests (tiny-graph zips, golden e2e) | |
| run: python -m pytest runtime/tests -v | |
| metrics-provenance: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - 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 |