Some checks failed
end-to-end-test / bubble-sort-optimization-pytest-no-git (pull_request) Failing after 2s
Coverage E2E / end-to-end-test-coverage (pull_request) Failing after 2s
end-to-end-test / init-optimization (pull_request) Failing after 2s
Mypy Type Checking for CLI / type-check-cli (pull_request) Failing after 2s
unit-tests / unit-tests (3.9.18) (pull_request) Failing after 2s
CodeFlash / Optimize new Python code (pull_request) Failing after 2s
end-to-end-test / bubble-sort-optimization-unittest (pull_request) Failing after 1s
end-to-end-test / futurehouse-structure (pull_request) Failing after 2s
end-to-end-test / tracer-replay (pull_request) Failing after 1s
end-to-end-test / topological-sort-optimization (pull_request) Failing after 2s
/ Run pr agent on every pull request, respond to user comments (pull_request) Failing after 1s
unit-tests / unit-tests (3.10.13) (pull_request) Failing after 2s
unit-tests / unit-tests (3.11.6) (pull_request) Failing after 2s
unit-tests / unit-tests (3.12.1) (pull_request) Failing after 1s
unit-tests / unit-tests (3.13.0) (pull_request) Failing after 2s
46 lines
No EOL
1.1 KiB
YAML
46 lines
No EOL
1.1 KiB
YAML
name: CodeFlash
|
||
|
||
on:
|
||
pull_request:
|
||
paths:
|
||
- "**"
|
||
workflow_dispatch:
|
||
|
||
concurrency:
|
||
group: ${{ github.workflow }}-${{ github.ref }}
|
||
cancel-in-progress: true
|
||
|
||
jobs:
|
||
optimize:
|
||
name: Optimize new Python code
|
||
if: ${{ github.actor != 'codeflash-ai[bot]' }}
|
||
runs-on: ubuntu-latest
|
||
env:
|
||
CODEFLASH_AIS_SERVER: prod
|
||
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
|
||
CODEFLASH_API_KEY: ${{ secrets.CODEFLASH_API_KEY }}
|
||
CODEFLASH_PR_NUMBER: ${{ github.event.number }}
|
||
COLUMNS: 110
|
||
steps:
|
||
- name: 🛎️ Checkout
|
||
uses: actions/checkout@v4
|
||
with:
|
||
fetch-depth: 0
|
||
|
||
- name: 🐍 Set up Python 3.11 for CLI
|
||
uses: astral-sh/setup-uv@v5
|
||
with:
|
||
python-version: 3.11.6
|
||
|
||
- name: 📦 Install dependencies (CLI)
|
||
run: |
|
||
uv tool install poetry
|
||
uv venv
|
||
source .venv/bin/activate
|
||
poetry install --with dev
|
||
|
||
- name: ⚡️Codeflash Optimization
|
||
id: optimize_code
|
||
run: |
|
||
source .venv/bin/activate
|
||
poetry run codeflash |