Skip to content

Add CI: lint and test on every PR and push to main - #29

Merged
ukrainets merged 2 commits into
mainfrom
ci/lint-and-test
Sep 25, 2026
Merged

ukrainets merged 2 commits into
mainfrom
ci/lint-and-test

Conversation

@ukrainets

Copy link
Copy Markdown
Owner

Summary

  • Add .github/workflows/ci.yml, a lint-and-test job that runs on every pull_request to main and every push to main.
  • Job checks out the repo, sets up Python at the version pinned in .python-version, installs requirements.txt and requirements-dev.txt with pip caching, then runs ruff check . and pytest tests/ -v.
  • No secrets used; permissions: contents: read; actions pinned to major versions (actions/checkout@v4, actions/setup-python@v5).
  • No Playwright browser install step, since the test suite mocks network calls with httpx/unittest.mock rather than driving a real browser.

Related issue

Closes #28

Test plan

  • Ran ruff check . in a clean checkout of this branch — no violations.
  • Ran pytest tests/ -v in a clean venv on this branch — 129 passed.
  • Confirm the workflow itself runs green on this PR via gh pr checks.

ukrainets and others added 2 commits September 24, 2026 20:13
Runs ruff check and pytest on every pull request to main and every
push to main, using the Python version pinned in .python-version.
No Playwright browser install is needed since the test suite mocks
network calls (httpx) rather than driving a browser.

Refs #28

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The badge shows the lint-and-test result for main. Ruff targeted
py313 while .python-version and CI run 3.12.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ukrainets
ukrainets merged commit 70acf75 into main Sep 25, 2026
1 check passed
@ukrainets
ukrainets deleted the ci/lint-and-test branch September 25, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CI: lint and test on every PR and push to main

1 participant