nickh007's picture
Cross-link the toolkit; correct the Space badge; real install URLs
d21403c verified
Raw
History Blame Contribute Delete
1.29 kB
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:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install pytest ruff==0.14.9
- name: Dataset claims hold against the data
run: pytest -q
- name: Lint
run: ruff check .
zero-dependency:
name: the verifier really has no dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
# Deliberately no pip install. If verify.py has picked up a third-party
# import, this job fails -- which is the whole promise of the artifact.
- name: Re-derive with a bare interpreter
run: python3 verify.py --samples 10
- name: The checker still discriminates
run: python3 verify.py --self-test