Datasets:
| name: CI | |
| on: { push: { branches: [main] }, pull_request: {}, workflow_dispatch: {} } | |
| # Supersede an in-flight run when a newer commit lands, instead of leaving a | |
| # queued job to be cancelled later -- a cancelled run shows red on the badge | |
| # and is indistinguishable from a real failure at a glance. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| corpus: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: { python: ['3.10', '3.11', '3.12', '3.13'] } | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - run: pip install numpy pytest "sparam-lint @ git+https://github.com/nickharris808/sparam-lint" || pip install numpy pytest | |
| - name: Regeneration must be byte-identical | |
| run: | | |
| python generate.py --out /tmp/regen | |
| for f in data/*.s*p; do | |
| cmp "$f" "/tmp/regen/$(basename $f)" || { echo "::error::$f is not reproducible"; exit 1; } | |
| done | |
| echo "corpus regenerates byte-identically" | |
| - name: Labels re-derived, scorer verified | |
| run: pytest -q | |
| - name: Reference checker must conform | |
| run: python score.py --checker sparam_lint_adapter:check | |