fix(rhat): a frozen chain scored better than a healthy one #73
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: ci | |
| # AdaptiveRG-QEC Phase-1 MVP — erste CI. | |
| # Alle Actions SHA-gepinnt (Fleet-Standard / zizmor-konform). | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: lint + compile + pytest + selftest-gates | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install (package + dev deps) | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev]" | |
| - name: Ruff lint | |
| run: ruff check src tests | |
| - name: Ruff format check | |
| run: ruff format --check src tests | |
| - name: Byte-compile (compileall) | |
| run: python -m compileall -q src tests | |
| - name: Pytest | |
| run: pytest | |
| - name: Selftest gates (all [PASS], exit 0) | |
| run: python -m adaptiverg_qec.cli --selftest --json results/selftest-ci.json | |
| - name: Upload gate-log | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: selftest-gate-log-py${{ matrix.python-version }} | |
| path: results/selftest-ci.json | |
| if-no-files-found: warn | |
| # Optionaler Job: Inkrement-3-MWPM-Tests MIT den [surface]-Extras (stim + pymatching). | |
| # Der Haupt-Job oben laeuft bewusst nur mit [dev] -> dort SKIPPEN die Surface-Tests | |
| # (sie failen nicht hart). Dieser Job stellt sicher, dass sie MIT den Extras gruen sind. | |
| surface: | |
| name: surface extras (stim + pymatching MWPM) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.12" | |
| - name: Install (package + dev + surface extras) | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev,surface]" | |
| - name: Pytest (surface decoder MWPM tests) | |
| run: pytest tests/test_surface_decoder.py -v |