chore: updating the api client to add a Protect route #27
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
name: Codeflash | |
on: | |
pull_request: | |
paths: | |
# So that this workflow only runs when code within the target module is modified | |
- 'src/galileo/**' | |
workflow_dispatch: | |
concurrency: | |
# Any new push to the PR will cancel the previous run, so that only the latest code is optimized | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
optimize: | |
name: Optimize new Python code | |
# Don't run codeflash on codeflash-ai[bot] commits, prevent duplicate optimizations | |
if: ${{ github.actor != 'codeflash-ai[bot]' }} | |
runs-on: ubuntu-latest | |
env: | |
CODEFLASH_API_KEY: ${{ secrets.CODEFLASH_API_KEY }} | |
CODEFLASH_PR_NUMBER: ${{ github.event.number }} | |
steps: | |
- name: 🛎️ Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 🐍 Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: 📦 Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install --all-extras | |
- name: ⚡️Codeflash Optimization | |
run: | | |
poetry env use python | |
poetry run codeflash |