-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Install Codeflash Github action #2195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ba7288f
to
f7ae6be
Compare
PR Change SummarySet up Codeflash GitHub action with necessary configurations and added guidance for development and testing.
Modified Files
Added Files
How can I customize these reviews?Check out the Hyperlint AI Reviewer docs for more information on how to customize the review. If you just want to ignore it on this PR, you can add the Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add |
f7ae6be
to
091c499
Compare
This reverts commit c5f7702. Update uv.lock
b40a2bf
to
d7b063e
Compare
eee4872
to
dddb328
Compare
@@ -222,9 +223,19 @@ def print(self, *args: Any, **kwargs: Any) -> None: | |||
test_globals: dict[str, str] = {'__name__': dunder_name} | |||
|
|||
if eval_example.update_examples: # pragma: lax no cover | |||
eval_example.run_print_update(example, call=call_name, module_globals=test_globals) | |||
benchmark( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this fixture coming directly from codeflash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
This fixture is provided by codeflash & adapts based on the testing environment: it uses CodeFlash's internal benchmarking when Codeflash mechanisms are active, falls back to pytest-benchmark when available in standard pytest, or acts as a no-op otherwise to preserve normal test behavior.
codeflash.yml
file which will run on every new Pull Request that modifies the source code forpydantic_ai_slim/pydantic_ai
and is covered by thetests/test_examples.py
.Actions Required to make this work-
CODEFLASH_API_KEY
after signing up to Codeflash from our website. The onboarding will ask you to create an API Key and show instructions on how to save the api key on your repo secrets.Then, after this PR is merged in it will start generating new optimizations 🎉