Repository navigation
release: 1.3.0 — split CI checks and automate PyPI publishing - #15
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Split the single CI "test" job into separate top-level checks — lint (ruff check), format (ruff format --check), type check (mypy) and security (bandit) — alongside the unit-test matrix, so a red check points straight at the cause instead of hiding inside one job. Releases now publish to PyPI automatically via GitHub Actions Trusted Publishing (OIDC): a push to main with a new __version__ runs the tests, tags the release, and uploads to PyPI — nothing publishes without a version bump. Also apply ruff format across the codebase, single-source the version from __version__ (guard tests pin the CHANGELOG top and both READMEs), mypy fixes across scraping/crawl, and one audited # nosec on the MCP HTTP bind. No behaviour change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
abrahamperz
force-pushed
the
ci/split-checks-and-auto-publish
branch
from
September 11, 2026 14:09
fcecc2c to
da3b9a3
Compare
The type-check job installs .[llm,dev,mcp] but not the optional [browser] extra, so mypy could not resolve playwright.sync_api (imported lazily in Scraper.browser() behind a try/except) and failed with import-not-found. Add a [tool.mypy] override so playwright.* is exempt from missing-import errors, keeping the heavy browser stack out of CI. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This branch was successfully deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
testjob becomes independent checks:lint(ruff check),format(ruff format --check),type check(mypy) andsecurity(bandit), alongside theunit test 3.9/unit test 3.12matrix. A red check points straight at the cause instead of hiding inside one collapsed job.mainwith a new__version__runs the tests, tags the release, and uploads to PyPI. Nothing publishes without a version bump.ruff formatapplied across the codebase.__version__: guard tests pin the top CHANGELOG entry and both READMEs so they can't drift.mypyfixes across scraping/crawl and one audited# nosecon the MCP HTTP bind. A[tool.mypy]override exempts the optionalplaywrightextra (imported lazily inScraper.browser()) from missing-import errors, so the type-check job stays light. No behaviour change.Release
1.3.0(minor). On merge,release.ymlpublishes to PyPI automatically.After merge
Return to the
mainruleset → Add checks → add the six checks (now visible after their first run) to complete the branch-protection gate.🤖 Generated with Claude Code