SERPent / .github /workflows /test.yml
Claude
Claude Opus 5
Housekeeping: lint in CI, client lifecycle, and a truer breaker signal
9841346 unverified
Raw
History Blame Contribute Delete
937 Bytes
name: Tests
# Runs the suite on every pull request targeting main, so a change gets
# feedback before merge instead of only at deploy time. deploy-to-hf.yml
# runs its own copy of this same gate right before every push to the Space
# (belt-and-suspenders: never trust a check that ran before the current
# state existed, the same principle behind that workflow's
# --force-with-lease push).
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Install Playwright's Chromium
run: playwright install --with-deps chromium
- name: Lint
run: ruff check .
- name: Run tests
run: pytest