Harden QRAE V0.14 quality gates #37
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: QRAE V0 Python CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| python-v0: | |
| 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 | |
| - run: pip install -e ".[dev]" | |
| - run: ruff check . | |
| - run: ruff format --check . | |
| - run: pyright | |
| - run: pytest -q | |
| - name: Run and verify deterministic kernel fixture | |
| shell: bash | |
| run: | | |
| run_output="$(python -m qrae.cli run --work-order examples/price_baseline/work_order.json --workspace . --output-root .quantos-ci)" | |
| run_dir="$(python -c 'import json,sys; print(json.load(sys.stdin)["run_dir"])' <<<"$run_output")" | |
| python -m qrae.cli verify --run-dir "$run_dir" | |
| - run: python scripts/qrae_readiness.py --env dev | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: qrae-v0-artifacts | |
| path: .quantos-ci/ |