Skip to content
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

Setup Codeflash and install the Codeflash github action #81

Merged
merged 5 commits into from
Jan 22, 2025

Conversation

misrasaurabh1
Copy link
Contributor

@misrasaurabh1 misrasaurabh1 commented Jan 15, 2025

This PR sets up the codeflash Github action for continuous-eval. I verified the setup and it does optimize new code on my fork.

To setup codeflash, an admin will need to complete the following steps -

  1. Install Codeflash github app on this repository by going to - https://github.com/apps/codeflash-ai/installations/select_target . This will let codeflash create suggestions on this repo.
  2. Generate a new API Key by logging into app.codeflash.ai . Paste the api key as CODEFLASH_API_KEY in repository secrets on this page https://github.com/relari-ai/continuous-eval/settings/secrets/actions

Once this PR is merged in, codeflash will start to optimize new code whenever a new PR is opened on this repo. You can also optimize new code locally by running either codeflash --all or codeflash --file <file_name> --function <function_name> to optimize a particular function.

Important

Set up Codeflash in GitHub Actions for code optimization and configure it in project dependencies.

  • GitHub Actions:
    • Adds codeflash-optimize.yaml to run Codeflash on pull requests and manual dispatch.
    • Configures the workflow to run on ubuntu-latest and use Python 3.12.
    • Installs project dependencies using Poetry and runs Codeflash.
  • Dependencies:
    • Adds codeflash version >=0.9.0 to pyproject.toml under dev dependencies.
  • Configuration:
    • Configures Codeflash in pyproject.toml with module-root, tests-root, test-framework, and formatter-cmds.

This description was created by Ellipsis for 1245326. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to 1245326 in 10 seconds

More details
  • Looked at 61 lines of code in 2 files
  • Skipped 1 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. .github/workflows/codeflash-optimize.yaml:22
  • Draft comment:
    The workflow uses Python 3.12, but the pyproject.toml specifies Python >=3.10,<3.13. Ensure compatibility or adjust the version range.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_Qd2Wo2ogY3E1kyRf


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@yisz yisz merged commit d224f0e into relari-ai:main Jan 22, 2025
1 check failed
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.

2 participants