ci: add GitHub Actions workflow (test + lint) - #1
Open
LiberiFatali wants to merge 1 commit into
Open
Conversation
Two blocking jobs on PRs to main and pushes to main, using the pinned requirements.txt so runs are deterministic on pydantic-ai 1.0.6: - test: installs the freeze + dev tools, installs the package with --no-deps so pip never re-resolves dependency floors, runs pytest. - lint: runs ruff check (github-format annotations) and ruff format --check on only the .py files changed in the PR, so pre-existing repo-wide debt never blocks unrelated PRs.
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.
Fork-internal test run — not the upstream PR yet.
Adds
.github/workflows/ci.ymlwith two blocking jobs on PRs tomainand pushes tomain:requirements.txt(deterministic on pydantic-ai 1.0.6) + dev tools, installs the package with--no-depsso pip never re-resolves dependency floors, runspytest.ruff check(github-format annotations) andruff format --checkon only the.pyfiles changed in the PR, so pre-existing repo-wide debt never blocks unrelated PRs.Notes for this test run:
origin/mainbefore PR fix: make CachingOpenAIModel._map_messages version-adaptive FSoft-AI4Code/CodeWiki#87 merges, so the 4test_prompt_caching.pyfailures are expected here; they disappear once fix: make CachingOpenAIModel._map_messages version-adaptive FSoft-AI4Code/CodeWiki#87 lands..pyfiles changed).