refactor[concurrent-cdk]: add _convert_to_concurrent_stream
to ConcurrentSourceAdapter
#261
Workflow file for this run
This file contains 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: Run Codeflash on CDK PR | |
on: | |
pull_request: | |
paths: | |
- airbyte-cdk/python/airbyte_cdk/** | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: ./airbyte-cdk/python/airbyte_cdk | |
jobs: | |
optimize: | |
name: | |
Optimize new code in this PR | |
# Only run codeflash if | |
# 1. The contributor is not codeflash. To avoid infinite loops | |
# 2. The pull request is not from a forked repository | |
if: ${{ github.actor != 'codeflash-ai[bot]' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork != true}} | |
runs-on: ubuntu-latest | |
env: | |
CODEFLASH_API_KEY: ${{ secrets.CODEFLASH_API_KEY }} | |
CODEFLASH_PR_NUMBER: ${{ github.event.number }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install Airbyte CDK | |
id: install-airbyte-cdk | |
run: | | |
pip install --upgrade pip | |
pip install poetry | |
poetry install --all-extras --with dev | |
- name: Run Codeflash to optimize code | |
id: optimize_code | |
run: | | |
poetry env use python | |
poetry run codeflash |