Created async Environment.get_id
method for unique environment ID
#347
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: CodeFlash | |
on: | |
pull_request: | |
paths: | |
- "src/**" | |
- "packages/**" | |
workflow_dispatch: | |
concurrency: # Cancel prior if new push, SEE: https://stackoverflow.com/a/72408109 | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
optimize: # SEE: https://docs.codeflash.ai/getting-started/codeflash-github-actions | |
runs-on: ubuntu-latest | |
if: ${{ github.actor != 'codeflash-ai[bot]' }} | |
env: | |
CODEFLASH_API_KEY: ${{ secrets.CODEFLASH_API_KEY }} | |
CODEFLASH_PR_NUMBER: ${{ github.event.number }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
- run: uv sync --group=codeflash | |
- name: Run CodeFlash on fhaviary | |
run: uv run codeflash | |
- name: Run CodeFlash on aviary.gsm8k | |
run: uv run codeflash --module-root=packages/gsm8k/src/aviary --tests-root=packages/gsm8k/tests | |
- name: Run CodeFlash on aviary.hotpotqa | |
run: uv run codeflash --module-root=packages/hotpotqa/src/aviary --tests-root=packages/hotpotqa/tests |