Skip to content

Allow strawberry.auto to override all_fields=True | Allow Private Fields to work with strawberry.auto (all_fields=True is pending) #773

Allow strawberry.auto to override all_fields=True | Allow Private Fields to work with strawberry.auto (all_fields=True is pending)

Allow strawberry.auto to override all_fields=True | Allow Private Fields to work with strawberry.auto (all_fields=True is pending) #773

Workflow file for this run

name: Codeflash
on:
pull_request:
paths:
# So that this workflow only runs when code within the target module is modified
- "strawberry/**"
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 in this PR
# 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:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.11"
- name: Install Project Dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --all-extras
- name: Run Codeflash to optimize code
run: |
poetry env use python
poetry run codeflash --benchmark --benchmarks-root tests/benchmarks