test: guard parity script import without torch #95
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
| # Horizon 76: accessibility blocker ceiling (stdlib) | |
| name: horizon76-smoke | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Run Horizon 76 --verify | |
| run: python scripts/horizon76_a11y_block_smoke.py --verify | |
| - name: Check artifact | |
| run: | | |
| python -c "import json, pathlib; p=pathlib.Path('.tmp/horizon76-a11y-block/run.json'); d=json.loads(p.read_text()); assert d.get('ok') and d.get('horizon')==76; assert d['schema']=='horizon76_a11y_block_run/1.0'; print('ok')" |